routing-fix

This commit is contained in:
2024-09-26 14:07:00 +03:00
parent d82225f9cd
commit f76f4fffca
5 changed files with 33 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ state = dict()
async def start():
logger.info("\tstarted")
async with ClientSession() as session:
offset = 0 # начальное значение offset
offset = 0 # init offset
while True:
response = await telegram_api("getUpdates", offset=offset, allowed_updates=['message', 'message_reaction'])
if isinstance(response, dict):
@@ -48,5 +48,4 @@ async def start():
if __name__ == "__main__":
# Запуск асинхронного цикла
asyncio.run(start())