Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |