fix-update
This commit is contained in:
parent
830e6747b4
commit
e6166319e8
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ __pycache__
|
|||
.DS_Store
|
||||
.vercel
|
||||
api/payload.json
|
||||
update.json
|
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue
Block a user