telegram 机器人

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"
			}]
		}
	}]
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值