2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 05:18:10 +00:00

Update compose example

This commit is contained in:
Dan 2022-06-20 09:48:03 +02:00
parent d61a2ce8a9
commit b35810dc9f

View File

@ -49,13 +49,15 @@ async def compose(
async def main(): async def main():
app1 = Client("account1") apps = [
app2 = Client("account2") Client("account1"),
app3 = Client("account3") Client("account2"),
Client("account3")
]
... ...
await compose([app1, app2, app3]) await compose(apps)
asyncio.run(main()) asyncio.run(main())