From 328f737ef73022a858a973c730a8c0a5fe34ad06 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Thu, 2 Aug 2018 13:17:59 +0200 Subject: [PATCH] Support custom.MessageButton as buttons reply markup --- telethon/client/buttons.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/telethon/client/buttons.py b/telethon/client/buttons.py index 49947dbf..e13f58b8 100644 --- a/telethon/client/buttons.py +++ b/telethon/client/buttons.py @@ -51,6 +51,8 @@ class ButtonMethods(UpdateMethods): ) button = button.button + elif isinstance(button, custom.MessageButton): + button = button.button if button.SUBCLASS_OF_ID == 0xbad74a3: # 0xbad74a3 == crc32(b'KeyboardButton')