Files
jd_scripts/backUp/TG_PUSH.md
2020-11-27 10:27:14 +08:00

18 lines
779 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

**TG_PUSH教程**
利用Telegram机器人推送通知需要在环境变量填入正确的```TG_BOT_TOKEN```以及```TG_USER_ID```以下教程简明阐述如何获取token以及UserID
.首先在Telegram上搜索[BotFather](https://t.me/BotFather)机器人<br>
![TG_PUSH1](../icon/TG_PUSH1.png)
Ⅱ.利用[BotFather](https://t.me/BotFather)创建一个属于自己的通知机器人按照下图中的1、2、3步骤拿到token格式形如```10xxx4:AAFcqxxxxgER5uw```。填入```TG_BOT_TOKEN```<br>
![TG_PUSH2](../icon/TG_PUSH2.png)
Ⅲ.再次在Telegram上搜索[getuserIDbot](https://t.me/getuserIDbot)机器人获取UserID。填入```TG_USER_ID```<br>
![TG_PUSH3](../icon/TG_PUSH3.png)
至此,获取**TG_BOT_TOKEN**以及**TG_USER_ID**的教程结束