X
X
xxxfdd2020-12-10 08:22:40
Python
xxxfdd, 2020-12-10 08:22:40

How do I understand the text in @bot.callback_query_handler(func=lambda call: True)?

My @bot.callback_query_handler(func=lambda call: True) enters when I click on the inline button, but when I want to display a message, I have to go here @bot.message_handler(content_types=['text']) The
question is how do I in the callback date display what the user will write to the chat bot?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Krostelev, 2020-12-10
@twistfire92

If I understand correctly what you need to do, then:
After clicking on the inline button, the callback_query_handler decorator is immediately called .
If you want to. in order for the bot to expect some specific input from the user, register_next_step_handler must be used . There are examples of use in the telebot project on github and here you can find many questions about this function.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question