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.Сustom data input interfaces (a personalized calendar for selecting dates selecting data from a list with advanced search options a randomizer that lets the user “spin a wheel” and chooses one of the available options, etc.).The bot can continue communicating with the user after receiving it. ![]() Data will be transmitted to the bot as a String in a service message. ![]() To transmit data from the user back to the bot, the Mini App can call the method. You can send a web_app type KeyboardButton that opens a Mini App from the specified URL. For even more flexibility, bots can utilize the full power of HTML5 to create user-friendly input interfaces. Users can interact with bots using custom keyboards, buttons under bot messages, as well as by sending freeform text messages or any of the attachment types supported by Telegram: photos and videos, files, locations, contacts and polls. This makes it possible for the bot to produce a response without communicating with any external servers. TL DR: Mini Apps launched from a web_app type keyboard button can send data back to the bot in a service message using. For example, when users switch between Day and Night modes or use various custom themes. Mini Apps always receive data about the user's current color theme in real time, so you can adjust the appearance of your interfaces to match it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |