Done! Congratulations on your new bot. You will find it at t.me/jd_test_1_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:
5546907283:AAGvyb5li9cm8l95OPBIegLTMaDY3b7dEVg
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
自己用户: 5756070498
发送信息给用户: (获取用户id: @getUserId)
https://api.telegram.org/bot5546907283:AAGvyb5li9cm8l95OPBIegLTMaDY3b7dEVg/sendMessage?chat_id=5756070498&text=1234
https://api.telegram.org/bot5546907283:AAGvyb5li9cm8l95OPBIegLTMaDY3b7dEVg/getUpdates
加入群组后
{
"ok": true,
"result": [{
"update_id": 756643057,
"my_chat_member": {
"chat": {
"id": -1001890106101,
"title": "Grupo de trabalho da Amazon",
"type": "supergroup"
},
"from": {
"id": 5756070498,
"is_bot": false,
"first_name": "joe",
"last_name": "doe",
"username": "plmokn159",
"language_code": "en"
},
"date": 1669347571,
"old_chat_member": {
"user": {
"id": 5546907283,
"is_bot": true,
"first_name": "jd_test",
"username": "jd_test_1_bot"
},
"status": "left"
},
"new_chat_member": {
"user": {
"id": 5546907283,
"is_bot": true,
"first_name": "jd_test",
"username": "jd_test_1_bot"
},
"status": "member"
}
}
}, {
"update_id": 756643058,
"message": {
"message_id": 658,
"from": {
"id": 5756070498,
"is_bot": false,
"first_name": "joe",
"last_name": "doe",
"username": "plmokn159",
"language_code": "en"
},
"chat": {
"id": -1001890106101,
"title": "Grupo de trabalho da Amazon",
"type": "supergroup"
},
"date": 1669347571,
"new_chat_participant": {
"id": 5546907283,
"is_bot": true,
"first_name": "jd_test",
"username": "jd_test_1_bot"
},
"new_chat_member": {
"id": 5546907283,
"is_bot": true,
"first_name": "jd_test",
"username": "jd_test_1_bot"
},
"new_chat_members": [{
"id": 5546907283,
"is_bot": true,
"first_name": "jd_test",
"username": "jd_test_1_bot"
}]
}
}]
}