telegram bot
BotFather
BotFather is the one bot to rule them all. It will help you create new bots and change settings for existing ones.
创建机器人 /newbot
/setname
配置bot name
/setuserpic
配置头像
查看操作指令`/help`
I can help you create and manage Telegram bots. If you're new to the Bot API, please see the manual.
You can control me by sending these commands:
/newbot - create a new bot
/mybots - edit your bots [beta]
Edit 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 bot
Bot Settings
/token - generate authorization token
/revoke - revoke bot access token
/setinline - toggle inline mode
/setinlinegeo - toggle inline location requests
/setinlinefeedback - change inline feedback settings
/setjoingroups - can your bot be added to groups?
/setprivacy - toggle privacy mode in groups
Games
/mygames - edit your games [beta]
/newgame - create a new game
/listgames - get a list of your games
/editgame - edit a game
/deletegame - delete an existing game
/setcommands
⚠️ /empty
会清空整个 commands list
输入格式需按照
command1 - Description
command2 - Another description
API调用
https://api.telegram.org/botxxx:xxx/getMe
node-telegram-bot-api
npm i node-telegram-bot-api
npm i @types/node-telegram-bot-api --save-dev