-
Notifications
You must be signed in to change notification settings - Fork 6k
Documentation updated- added important note for inlinebot.py example
#3067
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
Documentation updated- added important note for inlinebot.py example
#3067
Conversation
It is necessary to enable inline commands from botfather to use inline commands of your bot, Otherwise it won't work.
To use inline commands, you need to enable it from BotFather, just send `/setinline` and select your bot and then add placeholder text for your bot. There you go!
Bibo-Joshi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi. Thanks for PRing! While we do point to this in the readme already, there's surely no harm in repeating it in the example.
examples/inlinebot.py
Outdated
| IMPORTANT - | ||
| To enable inline commands for your bot, you have to send `/setinline` command to `botfather`. | ||
| Then select your bot and set placeholder for your bot. | ||
| Read more here - https://core.telegram.org/bots/inline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO we don't need to be quite as verbose. A simple "Dont forget to enable inline mode with @Botfather - " should suffice imo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, just pointing out in the example would be sufficient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would you like to rephrase the note?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, Should I rephrase and make PR again? Or you can edit it before accepting it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can just make a new commit to your master branch - the PR will automatically be updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated!
|
Thank you for the contribution! |
Added a simple note on
inlinebot.pypython file in the examples directory.I found that it is necessary to enable inline commands for your bot from BotFather from the documentation
here - https://core.telegram.org/bots/inline
I hope it serves some value to the community.