mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
24 lines
646 B
Python
24 lines
646 B
Python
|
from telebot.types import InlineKeyboardMarkup, InlineKeyboardButton
|
||
|
|
||
|
|
||
|
def languages_keyboard():
|
||
|
return InlineKeyboardMarkup(
|
||
|
keyboard=[
|
||
|
[
|
||
|
InlineKeyboardButton(text="English", callback_data='en'),
|
||
|
InlineKeyboardButton(text="Русский", callback_data='ru'),
|
||
|
InlineKeyboardButton(text="O'zbekcha", callback_data='uz_Latn')
|
||
|
]
|
||
|
]
|
||
|
)
|
||
|
|
||
|
|
||
|
def clicker_keyboard(_, lang):
|
||
|
return InlineKeyboardMarkup(
|
||
|
keyboard=[
|
||
|
[
|
||
|
InlineKeyboardButton(text=_("click", lang=lang), callback_data='click'),
|
||
|
]
|
||
|
]
|
||
|
)
|