|
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton |
|
from chatbot.plugins.languages import LANGUAGES |
|
|
|
def get_language_keyboard(): |
|
keyboard = [] |
|
|
|
|
|
keyboard.append([ |
|
InlineKeyboardButton("English", callback_data="lang_en"), |
|
InlineKeyboardButton("Indonesian", callback_data="lang_id") |
|
]) |
|
|
|
|
|
keyboard.append([ |
|
InlineKeyboardButton("Spanish", callback_data="lang_es") |
|
]) |
|
|
|
|
|
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) |