fix-update
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ __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']
|
||||||
|
Reference in New Issue
Block a user