Advertisement
Guest User

Untitled

a guest
Jan 10th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. @bot.callback_query_handler(func=lambda call: call.data == "about")
  2. def callback_about(call):
  3.      bot.edit_message_text(chat_id=call.message.chat.id, message_id=call.message.message_id, text="Проверка")
  4.  
  5. @bot.callback_query_handler(func=lambda call: call.data in ["ru", "ua"])
  6. def callback_country_choice(call):
  7.     bot.send_message(call.message.chat.id, "You have chosen %s" % call.data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement