From 298d361092aee2c410bb1086d65483151fae2de7 Mon Sep 17 00:00:00 2001 From: Mahesh <44301650+Mahesh0253@users.noreply.github.com> Date: Sat, 16 Jul 2022 22:55:26 +0530 Subject: [PATCH] Store "me" user object before starting dispatcher (#1042) --- pyrogram/methods/auth/initialize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/methods/auth/initialize.py b/pyrogram/methods/auth/initialize.py index 3e692044..26c9d0bf 100644 --- a/pyrogram/methods/auth/initialize.py +++ b/pyrogram/methods/auth/initialize.py @@ -44,8 +44,8 @@ class Initialize: self.load_plugins() - await self.dispatcher.start() - self.me = await self.get_me() + await self.dispatcher.start() + self.is_initialized = True