From 28c3a07d8417853cea224a75f35e9b577f24e232 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 7 Dec 2017 02:11:35 +0100 Subject: [PATCH] Fallback to "typing" instead of throwing an error --- pyrogram/client/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index fbb38131..6ef412ff 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -473,7 +473,8 @@ class Client: functions.messages.SetTyping( peer=self.resolve_peer(chat_id), action=self.CHAT_ACTIONS.get( - action.lower() + action.lower(), + types.SendMessageTypingAction )(progress=progress) ) )