GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing core.telegram.org — Bot menu button Machine-readable version of this page: /api/bots/menu.md. Bot menu buttonBots can choose the behavior of the menu button shown next to the text input field. For a simplified description using the HTTP bot API, see here ». Setting the menu buttonSchema:
Bots can use bots.setBotMenuButton to change the menu button for a certain user, or for all users. Set scope: all usersTo change the menu button for all users use the following parameters:
botMenuButtonDefault shouldn't be used as it has no effect, keeping the previously set menu button (either botMenuButton or botMenuButtonCommands). Set scope: specific usersTo change the menu button for a specific user use the following parameters:
Getting the menu buttonBots
Bots might need to know the button type currently used in a given chat or in all chats: bots.getBotMenuButton can be used for this. Users can't use this method, and should use the user method instead. Get scope: all usersTo get the menu button used for all users use the following parameter:
One of the following constructors will be returned:
botMenuButtonDefault will never be returned in this case. Get scope: specific usersTo get the menu button used for a specific user use the following parameter:
One of the following constructors will be returned:
Users
Users will receive an updateBotMenuButton update when a bot changes the behavior of the menu button globally or in the private chat with the user. For new bots, users.getFullUser can be used to fetch the userFull related to the bot, containing the botInfo constructor with various info about the bot, including the menu button behavior. botMenuButtonDefault will never be returned in an updateBotMenuButton or in a botInfo (but if it does happen, treat it like a botMenuButtonCommands). Bots should use the bot method instead. TelegramTelegram is a cloud-based mobile and desktop messaging app with a focus on security and speed. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |