From b35810dc9f1332d37a33847fd8846d12394c2db0 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 20 Jun 2022 09:48:03 +0200 Subject: [PATCH] Update compose example --- pyrogram/methods/utilities/compose.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyrogram/methods/utilities/compose.py b/pyrogram/methods/utilities/compose.py index cfc5ca3e..e05773b8 100644 --- a/pyrogram/methods/utilities/compose.py +++ b/pyrogram/methods/utilities/compose.py @@ -49,13 +49,15 @@ async def compose( async def main(): - app1 = Client("account1") - app2 = Client("account2") - app3 = Client("account3") + apps = [ + Client("account1"), + Client("account2"), + Client("account3") + ] ... - await compose([app1, app2, app3]) + await compose(apps) asyncio.run(main())