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

how to use Inline mode? #3

Closed
chelaxian opened this issue Nov 2, 2023 · 2 comments
Closed

how to use Inline mode? #3

chelaxian opened this issue Nov 2, 2023 · 2 comments

Comments

@chelaxian
Copy link

hello Mike!

thank you for such a good free project!
All works like a charm, but can you please instruct me how to use Inline mode with predefined roles?
I activated it in BotFather and when i start messege with tagging bot by its nickname like this @KourvA - telegram just adds text string with suggestion "Ask me", and when I type something - nothing happens.

can you please write a little guide in github README.md how to use Inline Roles with some examples.

Thank you!

@KourvA
Copy link
Owner

KourvA commented Nov 2, 2023

Hi @chelaxian , sorry for late reply. I'm glad you liked it.

You need to write prompt after username to get roles (e.g: @chelaxian prompt). if you don't like prompt, you can edit main.py and change inline handler command in line 191 and add yours like role...

191  @bot.inline_handler(lambda query: query.query == "role")

Update [Nov 13, 2023]
prompt replaced with roles. so you can get roles by typing:

@bot_username roles

@chelaxian
Copy link
Author

Thank you very much @KourvA ! Now all is working! Good luck to you in any new projects!

@KourvA KourvA pinned this issue Nov 13, 2023
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

2 participants