From e4447a8387634db8e651b7395e322c041e35070d Mon Sep 17 00:00:00 2001 From: infernvs Date: Wed, 18 Oct 2017 13:48:55 +0100 Subject: [PATCH] Update 'README.md' --- README.md | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index af29c0c..809764e 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,49 @@ backup script with messages to telegram via bot -![](https://infernvs.ugnetwork.org/telegram.jpg) \ No newline at end of file +**Create Telegram Bot** + +Start a conversation with the *BotFather*: + +``` +GLOBAL SEARCH -> BotFather +``` + +> **BotFather**: The *BotFather* is the one bot to rule them all. Use it to create new bot accounts and manage your existing bots. + + +Create a new bot: + +`/newbot` + +Choose a user-friendly name for your bot, for example: + +`Notifier` + +Choose a unique username for your bot (must ends with “bot”), for example: + +`notifier_bot` + +Once the bot is created, you will get a token to access the Telegram API. + +> TOKEN: The token is a string that is required to authorize the bot and send requests to the Telegram API, e.g. 4334584910:AAEPmjlh84N62Lv3jGWEgOftlxxAfMhB1gs + + +**Get The Chat ID** + +> CHAT_ID: To send a message through the Telegram API, the bot needs to provide the ID of the chat it wishes to speak in. The chat ID will be generated once you start the first conversation with your bot. + +Start a conversation with your bot: + +`🔍 GLOBAL SEARCH -> MY_BOT_NAME -> START` + +Send the /start command: + +`/start` + +To get the chat ID, open the following URL in your web-browser: https://api.telegram.org/bot**«TOKEN»**/getUpdates (replace **«TOKEN»** with your bot token). + + + +![](https://infernvs.ugnetwork.org/telegram.jpg) +