![]() Help and Settings links will be available in the menu on the bot's profile page if you add them in Chat and User Selectionīots can present the user with a friendly and intuitive interface that lists any number of groups, channels or other users according to a custom set of criteria. Users will see a Start button the first time they open a chat with your bot. /settings - (if applicable) shows the bot's settings for this user and suggests commands to edit them. ![]() /help - returns a help message, like a short text about what your bot can do and a list of commands.This command can also be used to pass additional parameters to the bot (see Deep Linking). /start - begins the interaction with the user, like sending an introductory message.Telegram apps will have interface shortcuts for these commands. To make basic interactions more uniform, we ask all developers to support a few basic commands. The menu button can alternatively be used to launch a Web App. This way you can drastically simplify and streamline user interaction with your bot. Using any of the buttons will immediately send the respective text. Telegram apps that receive the message will display your keyboard to the user. Whenever your bot sends a message, it can display a special keyboard with predefined reply options (see ReplyKeyboardMarkup). Keyboardsīots are able to interpret free text input from users, but offering specific suggestions is often more intuitive – this is where custom keyboards can be extremely useful. Your backend should always verify that received commands are valid and that the user was authorized to use them regardless of scope.īots with privacy mode enabled will only receive commands in groups under special conditions, see here. Keep in mind that Bot API updates will not contain any information about the scope of a command sent by the user – in fact, they may contain commands that don’t exist at all in your bot. For example, your bot could show additional commands to group admins or translate the list based on the user’s language_code. Your bot is able to show different commands to different users and groups – you can control this using scopes. We require all developers to support several Global Commands to make sure Telegram bots offer a consistent and user-friendly experience. They can use Latin letters, numbers and underscores, though simple lowercase text is recommended for a cleaner look.Ĭommands should be as specific as possible – for example /newlocation or /newrule is better than a /new command that then requires an additional parameter from the user like " location“ or ” rule". Show a menu button containing all or some of a bot’s commands (which you set via must always start with the / symbol and contain up to 32 characters.Selecting a command from the list immediately sends it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |