pyTelegramBotAPI
pyTelegramBotAPI copied to clipboard
inline_example
- What version of pyTelegramBotAPI are you using? Last
- What OS are you using? Android 12, one ui
- What version of python are you using? Last
Example "inline_example.py" doesn't work.
@bot.inline_handler(lambda query: query.query == 'text')
def query_text(inline_query):
query_text does not start
Any details?
I added details by editing
Enabled?
Yes. When i wrote "@mybot ", "@mybot text", "@mybot photo1" the input field was loading and nothing. In logs at this time: received 0 new updates. As far as I understand, TeleBot.Inline_handler() just doesn't work
You have to play with allowed_updates in infinity_polling if you are sure that you are not getting the updates.
@coder2020official Fast check shown that something is not obvious there. I'll check deeper later.
What do you mean by "something is not obvious there"? I have been using inline handlers for a long time. I think problem is within the allowed updates list
With allowed_updates in infinity_polling works as it should