当我将机器人添加到组或超级组时,我会以正确的格式获得更新
{"update_id":366723634,
"message":{"message_id":33,"from":{"id":***,"is_bot":false,"first_name":"name","username":"name","language_code":"en-US"},"chat":{"id":***,"title":"Bot Test","type":"supergroup"},"date":1523443381,"new_chat_participant":{"id":***,"is_bot":true,"first_name":"Bot Name","username":"username"},"new_chat_member":{"id":***,"is_bot":true,"first_name":"Bot Name","username":"username"},"new_chat_members":[{"id":***,"is_bot":true,"first_name":"Name","username":"username"}]}}
但是,当将bot添加到频道时,不会收到任何更新。我搜索了整个API手册,但无法找到与此相关的任何内容。
我使用webhook。感谢。
答案 0 :(得分:1)
是的,这是“正常”,频道帖子没有message
更新。
您的update应包含channel_post
而不是message
channel_post:任何类型的新传入频道帖子 - 文字,照片,贴纸等