浏览代码

Setting up a Telegram bot README.md (#972)

* Update README.md

* Uploaded media

Uploaded 5 photos related to setting up the Telegram bot section.

* Update README.md
Karo Yousefi 1 年之前
父节点
当前提交
c49147c5db
共有 6 个文件被更改,包括 21 次插入0 次删除
  1. 21 0
      README.md
  2. 二进制
      media/botfather.png
  3. 二进制
      media/newbot.png
  4. 二进制
      media/panel-bot-config.png
  5. 二进制
      media/token.png
  6. 二进制
      media/user-id.png

+ 21 - 0
README.md

@@ -254,6 +254,27 @@ Reference syntax:
 - Multi language bot
 </details>
 
+# Setting up Telegram bot
+
+- Start [Botfather](https://t.me/BotFather) in your Telegram account:
+    ![Botfather](./media/botfather.png)
+  
+- Create a new Bot using /newbot command: It will ask you 2 questions, A name and a username for your bot. Note that the username has to end with the word "bot".
+    ![Create new bot](./media/newbot.png)
+
+- Start the bot you've just created. You can find the link to your bot here.
+    ![token](./media/token.png)
+
+- Enter your panel and config Telegram bot settings like below:
+![Panel Config](./media/panel-bot-config.png)
+
+Enter your bot token in input field number 3.
+Enter the user ID in input field number 4. The Telegram accounts with this id will be the bot admin. (You can enter more than one, Just separate them with ,)
+
+- How to get Telegram user ID? Use this [bot](https://t.me/useridinfobot), Start the bot and it will give you the Telegram user ID.
+![User ID](./media/user-id.png)
+
+
 # API routes
 
 <details>

二进制
media/botfather.png


二进制
media/newbot.png


二进制
media/panel-bot-config.png


二进制
media/token.png


二进制
media/user-id.png