To configure the menu button, you must specify the text it should show and the Mini App URL. With Bot API 6.0, this button can be used to launch a Mini App instead. This simply offers a quicker way to access the app and is otherwise identical to launching a mini app from an inline button.īy default, chats with bots always show a convenient menu button that provides quick access to all listed commands. TL DR: Mini Apps can be launched from a customized menu button. The use cases are effectively unlimited.Fully-fledged web services and integrations of any kind.After receiving the message, the bot can continue communicating with the user. The bot can call the Bot API method answerWebAppQuery to send an inline message from the user back to the bot and close the Mini App. In addition to the user's theme settings, it will receive basic user information ( ID, name, username, language_code) and a unique identifier for the session, query_id, which allows messages on behalf of the user to be sent back to the bot. If receiving text data alone is insufficient or you need a more advanced and personalized interface, you can open a Mini App using a web_app type Inline KeyboardButton.įrom the button, a Mini App will open with the URL specified in the button. TL DR: For more interactive Mini Apps like use a web_app type Inline KeyboardButton, which gets basic user information and can be used to send a message on behalf of the user to the chat with the bot. Reusable components that do not depend on a particular bot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |