2022-12-13 00:28:50
如何在TG创建自己的机器人:
1.首先找到TG官方机器人 @BotFather 所有TG机器人都需要这里创建,被称为机器人之父。
2.进入点击 /newbot
3.然后为机器人编辑一个名称发送,
4.为机器人设置一个用户名,结尾必须要写 “bot”成功后会出现一串API代码例如:
Done! Congratulations on your new bot. You will find it at t.me/mpay0404bot. 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:
5729838337:AAE9ORpKT6CvdoCoIKZsJfrSlgudUvfPE2c
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
出现这串代码表示你自己的机器人就注册成功了,注意这串代码不要发给别人。
如何为机器人设置头像:
1.首先回到机器人发送“/mybots”
2.机器人返回的消息下面按钮点进去,就是刚才设置的用户名,
3.然后点“Edit bot”
4.在点“Edit Botpic”机器人返回消息后,发送要设置的头像就可以啦。
如何设置描述和描述图片:
1.首先点击下方Back to bot返回到机器人主菜单,或者重新发送“/mybots”选择下面按钮
2.点击“Edit Bot”
3.在点击“Edit Description”
4.机器人返回消息后,就可以编辑你的描述了 。
5.然后点击“Back to bot”返回菜单,
6.再点“Edit Bot”
7.然后点“Edit Description picture”
8.机器人返回消息后编辑要设置的图片发送,图片格式,像素640x360 。或 GIF,320x180 。
你的描述和描述图片会在别人打开您的机器人时看到此描述。
——— 返回导航 ———-
1.6K viewsedited 21:28