Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inline_example #2238

Open
DevMykola opened this issue Apr 23, 2024 · 8 comments
Open

inline_example #2238

DevMykola opened this issue Apr 23, 2024 · 8 comments

Comments

@DevMykola
Copy link

DevMykola commented Apr 23, 2024

  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

@DevMykola DevMykola changed the title Inline_ inline_example.py Apr 23, 2024
@DevMykola DevMykola changed the title inline_example.py inline_example Apr 23, 2024
@Badiboy
Copy link
Collaborator

Badiboy commented Apr 23, 2024

Any details?

@DevMykola
Copy link
Author

I added details by editing

@Badiboy
Copy link
Collaborator

Badiboy commented Apr 23, 2024

image

Enabled?

@DevMykola
Copy link
Author

DevMykola commented Apr 23, 2024

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

@coder2020official
Copy link
Collaborator

You have to play with allowed_updates in infinity_polling if you are sure that you are not getting the updates.

@Badiboy
Copy link
Collaborator

Badiboy commented Apr 25, 2024

@coder2020official Fast check shown that something is not obvious there. I'll check deeper later.

@coder2020official
Copy link
Collaborator

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

@DevMykola
Copy link
Author

With allowed_updates in infinity_polling works as it should

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants