Compare commits
3 commits
5c526f1371
...
9d3ff4f1a2
Author | SHA1 | Date | |
---|---|---|---|
9d3ff4f1a2 | |||
51754e363a | |||
313221a2cf |
2 changed files with 11 additions and 2 deletions
12
mirrortea
12
mirrortea
|
@ -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())
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
aiogram==2.24
|
||||
matrix-nio==0.20.1
|
||||
|
|
Loading…
Add table
Reference in a new issue