fix-update
This commit is contained in:
@@ -29,7 +29,7 @@ async def handle(req):
|
||||
try:
|
||||
update = req.json
|
||||
print(update)
|
||||
msg = update.get('message')
|
||||
msg = update.get('message', update.get('my_chat_member'))
|
||||
if msg['chat']['id'] == CHAT_ID:
|
||||
chat_id = msg['chat']['id']
|
||||
member_id = msg['user']['id']
|
||||
|
Reference in New Issue
Block a user