
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. Suggest a list of supported commands with descriptions when the user enters a / (for this to work, you need to have provided a list of commands to or via the appropriate API method). When the user taps a highlighted command, that command is immediately sent again. CommandsĪ command is a simple /keyword that tells the bot what to do. Note: Telegram bots can support multiple languages that adapt to the users' language settings in the app. Buttons that are shown next to messages from the bot.įor even more flexibility, Web Apps support 100% custom interfaces with JavaScript. Keyboards that replace the user's keyboard with predefined answer options. Commands that are highlighted in messages and can be selected from a list after typing /. However, Telegram bots offer many other tools for building flexible interfaces tailored to your specific needs: Users can send messages of all types to bots, including text, files, locations, stickers, voice messages and even dice if they're feeling lucky. This page describes individual bot elements and features in detail.