routing-fix
This commit is contained in:
3
main.py
3
main.py
@@ -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())
|
||||
|
Reference in New Issue
Block a user