The following syntax may be used: /commandĪ command must always start with the '/' symbol and may not be longer than 32 characters. Check out these sample bots to see inline keyboards in action: more about inline keyboards and on-the-fly editing » CommandsĬommands present a more flexible way to communicate with your bot.
When callback buttons are used, your bot can update its existing messages (or just their keyboards) so that the chat remains tidy. We currently support text and emoji for your buttons. This way you can drastically simplify user interaction with your bot. Tapping any of the buttons will immediately send the respective command. Telegram apps that receive the message will display your keyboard to the user. Whenever your bot sends a message, it can pass along a special keyboard with predefined reply options (see ReplyKeyboardMarkup). But sometimes you want some more formal input from the user - and this is where custom keyboards can become extremely useful. Traditional chat bots can of course be taught to understand human language. Read more about the Gaming Platform » Keyboards You can also check out the bot that has more than 20 games. Our team has created a couple of simple demos for you to try out: Since the underlying technology is HTML5, the games can be anything from simple arcades and puzzles to multiplayer 3D-shooters and real-time strategy games. You can also try the and bots to see for yourself. This way, people can request content from your bot in any of their chats, groups or channels.Ĭheck out this blog to see a sample inline bot in action.
As soon as the user taps one of them, it is sent to the user's currently opened chat. Having received the query, your bot can return some results. All they need to do is start a message with your bot's username and then type a query. Users can interact with your bot via inline queries straight from the text input field in any chat. Telegram bots are unique in many ways - we offer two kinds of keyboards, additional interfaces for default commands and deep linking as well as text formatting, integrated payments and more. Bots never eat, sleep or complain (unless expressly programmed otherwise).When added to a group, bots do not receive all messages by default (see Privacy mode). Bot usernames always end in 'bot' (e.g.People can use t.me/ links or username search to find your bot. A user must either add them to a group or send them a message first. Bots can't initiate conversations with users.Bots have limited cloud storage - older messages may be removed by the server shortly after they have been processed.Bots have no online status and no last seen timestamps, the interface shows the label 'bot' instead.
You may also like to check out some code examples here » 4.
Once you've created a bot and received your authentication token, head down to the Bot API manual to see what you can teach your bot to do. Just talk to BotFather (described below) and follow a few simple steps. We call that interface our Bot API.Ī detailed description of the Bot API is available on this page » 3. You communicate with this server via a simple HTTPS-interface that offers a simplified version of the Telegram API. Our intermediary server handles all encryption and communication with the Telegram API for you.
Messages, commands and requests sent by users are passed to the software running on your servers. This allows sending content from inline bots directly into any chat, group or channel. Send requests directly from the input field by typing the bot's and a query.Send messages and commands to bots by opening a chat with them or by adding them to groups.Users can interact with bots in two ways: Except for dishes - bots are terrible at doing the dishes.Īt the core, Telegram Bots are special accounts that do not require an additional phone number to set up. A bot could connect people looking for conversation partners based on common interests or proximity.ĭo virtually anything else.
A bot can offer rich HTML5 experiences, from simple arcades and puzzles to 3D-shooters and real-time strategy games.īuild social services. Markdown bot, Sticker bot, Vote bot, Like botīuild single- and multiplayer games.
A bot may provide you with alerts, weather forecasts, translations, formatting or other services. A bot can offer paid services or work as a virtual storefront. Gmail Bot, GIF bot, IMDB bot, Wiki bot, Music bot, Youtube bot, GitHubBotĪccept payments from Telegram users. A bot can enrich Telegram chats with content from external services. A bot can act as a smart newspaper, sending you relevant content as soon as it's published. To name just a few things, you could use bots to: