Documentation updated- added important note for inlinebot.py example#3067
Documentation updated- added important note for inlinebot.py example#3067Bibo-Joshi merged 3 commits intopython-telegram-bot:doc-fixesfrom
inlinebot.py example#3067Conversation
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.
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.
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.
True, just pointing out in the example would be sufficient
There was a problem hiding this comment.
would you like to rephrase the note?
There was a problem hiding this comment.
Sure, Should I rephrase and make PR again? Or you can edit it before accepting it?
There was a problem hiding this comment.
you can just make a new commit to your master branch - the PR will automatically be 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.