机器人收到new_chat_member消息

时间:2020-08-08 08:15:25

标签: bots telegram

我的Telegram机器人这样接收连续的消息流(每秒)

{
    "update_id": 10809xxx0,
    "message": {
        "message_id": 12599,
        "from": {
            "id": 1279326489,
            "is_bot": false,
            "first_name": "Lala ram",
            "last_name": "Meema"
        },
        "chat": {
            "id": -1001132938132,
            "title": "\ud83c\udf39A\ud83d\udc9eR\ud83c\udf39lUDO GRUP",
            "username": "ARanoopkachroda",
            "type": "supergroup"
        },
        "date": 1596797474,
        "new_chat_participant": {
            "id": 1279326489,
            "is_bot": false,
            "first_name": "Lala ram",
            "last_name": "Meema"
        },
        "new_chat_member": {
            "id": 1279326489,
            "is_bot": false,
            "first_name": "Lala ram",
            "last_name": "Meema"
        },
        "new_chat_members": [{
            "id": 1279326489,
            "is_bot": false,
            "first_name": "Lala ram",
            "last_name": "Meema"
        }]
    }
}

我不知道该如何停止。邮件中的用户ID在每封邮件中都会更改。

任何方向都很好!

0 个答案:

没有答案