1
0
Fork 0

Compare commits

...

3 Commits

Author SHA1 Message Date
Alex Kotov 9d3ff4f1a2
Use two loops 2023-01-08 01:29:12 +04:00
Alex Kotov 51754e363a
Use aiogram 2023-01-08 01:13:27 +04:00
Alex Kotov 313221a2cf
Improve code 2023-01-08 01:05:21 +04:00
2 changed files with 11 additions and 2 deletions

View File

@ -1,10 +1,18 @@
#!/usr/bin/env python3
import asyncio
from nio import AsyncClient
import aiogram as telegram
import nio as matrix
async def main():
await asyncio.gather(matrix_loop(), telegram_loop())
async def matrix_loop():
print(123)
async def telegram_loop():
print(456)
if __name__ == '__main__':
asyncio.get_event_loop().run_until_complete(main())
asyncio.run(main())

View File

@ -1 +1,2 @@
aiogram==2.24
matrix-nio==0.20.1