From 2870ae84e73cf37dc4a489299275f3584a9f773d Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 22 Sep 2022 15:26:42 +0200 Subject: [PATCH] Move get_me() call into start() --- pyrogram/methods/auth/initialize.py | 2 -- pyrogram/methods/utilities/start.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/methods/auth/initialize.py b/pyrogram/methods/auth/initialize.py index 26c9d0bf..1e7915e0 100644 --- a/pyrogram/methods/auth/initialize.py +++ b/pyrogram/methods/auth/initialize.py @@ -44,8 +44,6 @@ class Initialize: self.load_plugins() - self.me = await self.get_me() - await self.dispatcher.start() self.is_initialized = True diff --git a/pyrogram/methods/utilities/start.py b/pyrogram/methods/utilities/start.py index bf5468fb..20b451be 100644 --- a/pyrogram/methods/utilities/start.py +++ b/pyrogram/methods/utilities/start.py @@ -71,4 +71,6 @@ class Start: raise else: await self.initialize() + self.me = await self.get_me() + return self