File size: 1,104 Bytes
7ae18de
 
 
f302594
7ae18de
a10a73e
f302594
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a10a73e
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
from chatbot.plugins.languages import LANGUAGES

def get_language_keyboard():
    keyboard = []

    # Row 1: English, Indonesian
    keyboard.append([
        InlineKeyboardButton("English", callback_data="lang_en"),
        InlineKeyboardButton("Indonesian", callback_data="lang_id")
    ])

    # Row 2: Spanish
    keyboard.append([
        InlineKeyboardButton("Spanish", callback_data="lang_es")
    ])

    # Row 3: French, German, Japanese
    keyboard.append([
        InlineKeyboardButton("French", callback_data="lang_fr"),
        InlineKeyboardButton("German", callback_data="lang_de"),
        InlineKeyboardButton("Japanese", callback_data="lang_jp")
    ])

    keyboard.append([
        InlineKeyboardButton("Malagasy", callback_data="lang_mg"),
        InlineKeyboardButton("Russian", callback_data="lang_ru"),
        InlineKeyboardButton("Hindi", callback_data="lang_hi"),
    ])
    keyboard.append([
        InlineKeyboardButton("Cancel", callback_data="cancel")
    ])

    return InlineKeyboardMarkup(keyboard)