fix-update
This commit is contained in:
parent
830e6747b4
commit
e6166319e8
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -2,4 +2,5 @@
|
||||||
__pycache__
|
__pycache__
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.vercel
|
.vercel
|
||||||
api/payload.json
|
api/payload.json
|
||||||
|
update.json
|
|
@ -29,7 +29,7 @@ async def handle(req):
|
||||||
try:
|
try:
|
||||||
update = req.json
|
update = req.json
|
||||||
print(update)
|
print(update)
|
||||||
msg = update.get('message')
|
msg = update.get('message', update.get('my_chat_member'))
|
||||||
if msg['chat']['id'] == CHAT_ID:
|
if msg['chat']['id'] == CHAT_ID:
|
||||||
chat_id = msg['chat']['id']
|
chat_id = msg['chat']['id']
|
||||||
member_id = msg['user']['id']
|
member_id = msg['user']['id']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user