From 9781cf1259b109934a41cbe0ed6c9374c10106b8 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 26 Oct 2021 20:24:02 +0000 Subject: [PATCH] Update content of files --- data/corefork.telegram.org/bots.html | 226 ++++++++++++++------------- 1 file changed, 120 insertions(+), 106 deletions(-) diff --git a/data/corefork.telegram.org/bots.html b/data/corefork.telegram.org/bots.html index 35f72253eb..6b06843161 100644 --- a/data/corefork.telegram.org/bots.html +++ b/data/corefork.telegram.org/bots.html @@ -42,86 +42,81 @@

Bots are third-party applications that run inside Telegram. Users can interact with bots by sending them messages, commands and inline requests. You control your bots using HTTPS requests to our Bot API.

-

1. What can I do with bots?

+

1. What can I do with bots?

- +
+

To name just a few things, you could use bots to:

-

2. How do bots work?

+

2. How do bots work?

At the core, Telegram Bots are special accounts that do not require an additional phone number to set up. Users can interact with bots in two ways:

Messages, commands and requests sent by users are passed to the software running on your servers. Our intermediary server handles all encryption and communication with the Telegram API for you. You communicate with this server via a simple HTTPS-interface that offers a simplified version of the Telegram API. We call that interface our Bot API.

A detailed description of the Bot API is available on this page »

-

3. How do I create a bot?

+

3. How do I create a bot?

- +
-

There's a... bot for that. Just talk to BotFather (described below) and follow a few simple steps. Once you've created a bot and received your authorization token, head down to the Bot API manual to see what you can teach your bot to do.

+ +

There's a… bot for that. Just talk to BotFather (described below) and follow a few simple steps. 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.

You may also like to check out some code examples here »

-

4. How are bots different from humans?

+

4. How are bots different from humans?


-

5. Bot perks

+

5. Bot perks

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.

-

Inline mode

+

Inline mode

-

Users can interact with your bot via inline queries straight from the text input field in any chat. All they need to do is start a message with your bot's username and then type a query.

-

Having received the query, your bot can return some results. As soon as the user taps one of them, it is sent to the user's currently opened chat. This way, people can request content from your bot in any of their chats, groups or channels.

+ +

Users can interact with your bot via inline queries straight from the text input field in any chat. All they need to do is start a message with your bot's username and then type a query.

+

Having received the query, your bot can return some results. As soon as the user taps one of them, it is sent to the user's currently opened chat. This way, people can request content from your bot in any of their chats, groups or channels.

Check out this blog to see a sample inline bot in action. You can also try the @sticker and @music bots to see for yourself.

-
+ +
-

We've also implemented an easy way for your bot to switch between inline and PM modes.

+ +

We've also implemented an easy way for your bot to switch between inline and PM modes.

Read more about the Inline Mode »

-

Payment platform

+

Payment platform

+

You can use bots to accept payments from Telegram users around the world.

+
+

Read more about the Payments Platform »

-

Gaming platform

+

Gaming platform

Bots can offer their users HTML5 games to play solo or to compete against each other in groups and one-on-one chats. The platform allows your bot to keep track of high scores for every game played in every chat. Whenever there’s a new leader in the game, other playing members in the chat are notified that they need to step it up.

- - + +
+

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. Our team has created a couple of simple demos for you to try out:

+

That's it for the introduction. You are now definitely ready to proceed to the BOT API MANUAL.

+

If you've got any questions, please check out our Bot FAQ »

+