This repository has been archived on 2023-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
MirrorTea/mirrortea

19 lines
300 B
Plaintext
Raw Normal View History

2023-01-07 20:11:46 +00:00
#!/usr/bin/env python3
import asyncio
2023-01-07 21:13:27 +00:00
import aiogram as telegram
import nio as matrix
2023-01-07 20:11:46 +00:00
2023-01-07 21:29:12 +00:00
async def main():
await asyncio.gather(matrix_loop(), telegram_loop())
2023-01-07 21:05:21 +00:00
2023-01-07 21:29:12 +00:00
async def matrix_loop():
2023-01-07 20:11:46 +00:00
print(123)
2023-01-07 21:29:12 +00:00
async def telegram_loop():
print(456)
2023-01-07 20:11:46 +00:00
if __name__ == '__main__':
2023-01-07 21:29:12 +00:00
asyncio.run(main())