环境准备如下:
tg账号必备且未被禁言
正常访问环境
首先呢第一个我们需要搜索到@BotFather机器人
我给你们附带机器人的二维码
I can help you create and manage Telegram bots. If you're new to the Bot API, please see the manual (https://core.telegram.org/bots).
You can control me by sending these commands:
/newbot - create a new bot
/mybots - edit your botsEdit Bots
/setname - change a bot's name
/setdescription - change bot description
/setabouttext - change bot about info
/setuserpic - change bot profile photo
/setcommands - change the list of commands
/deletebot - delete a botBot Settings
/token - generate authorization token
/revoke - revoke bot access token
/setinline - toggle inline mode (https://core.telegram.org/bots/inline)
/setinlinegeo - toggle inline location requests (https://core.telegram.org/bots/inline#location-based-results)
/setinlinefeedback - change inline feedback (https://core.telegram.org/bots/inline#collecting-feedback) settings
/setjoingroups - can your bot be added to groups?
/setprivacy - toggle privacy mode (https://core.telegram.org/bots/features#privacy-mode) in groupsWeb Apps
/myapps - edit your web apps (https://core.telegram.org/bots/webapps)
/newapp - create a new web app (https://core.telegram.org/bots/webapps)
/listapps - get a list of your web apps
/editapp - edit a web app
/deleteapp - delete an existing web appGames
/mygames - edit your games (https://core.telegram.org/bots/games)
/newgame - create a new game (https://core.telegram.org/bots/games)
/listgames - get a list of your games
/editgame - edit a game
/deletegame - delete an existing game
英文大家看不懂的也没事,现在各大翻译软件都基本可以无误的完整翻译
/newbot 执行
当你执行完毕后会提示你应该给你的机器人创建一个名字,名称
Alright, a new bot. How are we going to call it? Please choose a name for your bot.
当然这里的名称就自己起一个就好了
如图所示
提示还需要按照他的格式来修改 后面必须加上_bot的格式
注意!!!这里创建的是你的唯一标识符,唯一的uuid
创建的过程当中可能会出现用户名被占用的情况
到现在位置我们的机器人就创建完成了,
当然现在只是简单的创建了我们的机器人,我们需要使用指令还得去配置一下
按照机器人的提示逐一输入,你的第一个tg机器人就创建好了
telegram.org中可以查看到对应的api和机器人的使用规则