eternnoir / pyTelegramBotAPI

Python Telegram bot api.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

inline_example

DevMykola opened this issue · comments

  1. What version of pyTelegramBotAPI are you using?
    Last
  2. What OS are you using?
    Android 12, one ui
  3. 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

image

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

commented

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.

commented

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