Skip to content

Commit

Permalink
Create create_telegram_webhook.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Edu4rdSHL committed Oct 6, 2019
1 parent 09f7767 commit fb4d36a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/create_telegram_webhook.md
@@ -0,0 +1,39 @@
# Requisites

[Telegram messenger](https://telegram.org/): Download the app to the phone or desktop as well.

# Configuration

Search the BotFather, the official bot that allows you to create bots.

![Bot Father](../images/bot_father.png)

Then, create a new bot:

`/newbot`

Choose a name for your bot

`FindomainBot`

Choose a username for your bot, which must end with "_bot"

`FindomainWebhook_bot`

Once the bot is created, you will have a long string that is the TOKENID. The message will be similar to:

`Use this token to access the HTTP API:`

It will be used as the `findomain_telegrambot_token` system variable, save it.

Now, the bot is only the "guy" who will send you the messages. It has to know the chat where to send them. For this reason, got to the search bar of Telegram, and search your bot. Then, start the bot:

`/start`

You can now go to the website https://api.telegram.org/bot[BOT_TOKEN]/getUpdates (replacing [BOT_TOKEN] with the token you received before) and search for your id.

![Telegram chat id](../images/telegram_chat_id.png)

It will be used as the `findomain_telegrambot_chat_id` system variable, save it.

Now you are ready to use the Telegram webhook.

0 comments on commit fb4d36a

Please sign in to comment.