fix-update

This commit is contained in:
tonyrewin 2023-04-16 18:57:31 +03:00
parent 830e6747b4
commit e6166319e8
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ __pycache__
.DS_Store
.vercel
api/payload.json
update.json

View File

@ -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']