join-req-fix
This commit is contained in:
parent
28a10283cb
commit
4951d4edff
2
main.py
2
main.py
|
@ -18,7 +18,7 @@ async def start():
|
||||||
async with ClientSession() as session:
|
async with ClientSession() as session:
|
||||||
offset = 0 # init offset
|
offset = 0 # init offset
|
||||||
while True:
|
while True:
|
||||||
response = await telegram_api("getUpdates", offset=offset, allowed_updates=['message', 'message_reaction'])
|
response = await telegram_api("getUpdates", offset=offset, allowed_updates=['message', 'message_reaction', 'chat_join_request'])
|
||||||
# logger.debug(response)
|
# logger.debug(response)
|
||||||
if isinstance(response, dict):
|
if isinstance(response, dict):
|
||||||
result = response.get("result", [])
|
result = response.get("result", [])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user