Telegram-Bot
免费的机器人
- @qunbot
管理后台 https://qun.tg/admin/chats/-1002040530735/welcome

- @hao12bot (https://t.me/hao12bot)

- nmBot Telegram 帮助文档

介绍
telegram 机器人开发
示例

使用
把变量
token和username替换为自己的内容
本地
如果是在本地跑的话,需要开启代理 vpn
Replit
不要试图在国内的服务器跑,国内服务器连接不是telegram
创建 Telegram Bot
先给 BotFather 发送指令
/newbot
发送机器人名字
上一步后回应:
Alright, a new bot. How are we going to call it? Please choose a name for your bot.
比如叫 小艾 就发送 小艾
给机器人起用户名
上一步回复:Good. Now let’s choose a username for your bot. It must end in
bot. Like this, for example: TetrisBot or tetris_bot.
发送一个机器人用户名 必须以 _bot 结尾,如果有这个用户名了会告诉你重新发送
比如 chattest_bot
返回token
要保存
token跑项目的
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



