打开 Telegram,顶部栏搜索 @BotFather,或者直接点击 BotFather。
点击左下角菜单栏,选择最顶部的 /newbot。
输入 Symedia 通知 的名称或自己取名。
Yourself, [2024/11/24 21:37]
/newbot
BotFather,[2024/11/24 21:37]
Alright, a new bot. How are we going to call it? Please choose a name for your bot.
bot 或 _bot 结尾。Yourself, [2024/11/24 21:37]
/newbot
BotFather,[2024/11/24 21:37]
Alright, a new bot. How are we going to call it? Please choose a name for your bot.
Yourself,[2024/11/24 21:37]
Symedia 通知
BotFather,[2024/11/24 21:37]
Good. Now let's choose a username for your bot. It must end in `bot`. Like this, for example: TetrisBot or tetris_bot.
Yourself, [2024/11/24 21:37]
symdeia_test_bot
BotFather,[2024/11/24 21:37]
Done! Congratulations on your new bot. You will find it at t.me/symdeia_test_bot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.
Use this token to access the HTTP API:
# 下面这行 API,复制它,等下要用
1234567891:ABCD-abcdefgHIJKLMNopqrstUVWXYZ
Keep your token secure and store it safely, it can be used by anyone to control your bot.
For a description of the Bot API, see this page: https://core.telegram.org/bots/api
保存 HTTP API,等下需要用到。
获取自己的 ID,telegram 搜索 @userinfobot,或者直接点击 userinfobot。点击 start 就能看见 ID 了。
Yourself,[2024/11/24 21:39]
/about
userinfobot, [2024/11/24 21:39]
👤 You
├ id: 1234567890
├ is_bot: false
├ First: Yourself
└ language: zh-hans
@BotFather 获取到的 API。例如:1234567891:ABCD-abcdefgHIJKLMNopqrstUVWXYZ。@getidsbot 获取到的 ID。 例如:1234567890。, 分割,不填写则所有用户都能使用。
@getidsbot 获取到的 ID。 例如:1234567890。保存后,进行测试连接,可以查看机器人是否给你发送通知。如果成功,会给你发送一条。
BotFather 发给你的消息能看到你机器人的链接。t.me/symdeia_test_bot.。symdeia_test_bot 发送给你的。Symedia 通知, [2024/11/24 21:41]
Symedia:这是一条测试消息
查看该文章:企业微信