pythontelegramtelegram-botpython-telegram-botaiogram

How to implement a prompt when entering a command in aiogram Python?


How to implement a tooltip when entering a command in aiogram Python?

You enter a command in a line and a small field is shown as a tooltip, example below.

Photo example

I've tried googling for information, documentation, but I haven't really found what I'm looking for


Solution

  • The tooltip you're searching for is called Inline Mode.

    In order to enable it for your bot:

    1. Contact BotFather
    2. Type in "/mybots"
    3. Choose your bot
    4. Click on "Bot Settings"
    5. Click on "Inline Mode"
    6. And finally click on "Turn on"

    Then you'll have the option to edit the inline placeholder that will be shown in the chat.

    BotFather