From 839f7b99f43631d8e760e69d6074977c7945d014 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 15 Mar 2018 20:41:13 +0100 Subject: [PATCH] Call GetState for bots --- pyrogram/client/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 410e167c..39ed55d1 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -201,6 +201,8 @@ class Client: if self.token is None: self.get_dialogs() self.get_contacts() + else: + self.send(functions.updates.GetState()) self.rnd_id = MsgId