Answer the question
In order to leave comments, you need to log in
PytelegrambotAPI: How to get user id in Inline Mode?
PytelegrambotAPI: How to get user id in Inline Mode?
keyboard.add(*[types.InlineKeyboardButton(text=name,callback_data=name) for name in ['Русский','English']])
msg = bot.send_message(chat_id, 'Выберите язык : Choose language', reply_markup=keyboard)
...
@bot.callback_query_handler(func=lambda c: True)
def callback_inline(c):
chat_id_bot = c.message.chat.id
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question