Skip to content

Commit 9778854

Browse files
committed
(fix): InlineKeyboardButton parsing
Ref: https://t.me/c/1109500936/2456
1 parent 5fc6e19 commit 9778854

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pyrogram/types/bots_and_keyboards/inline_keyboard_button.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,11 @@ def read(b: "raw.base.KeyboardButton"):
206206
)
207207
)
208208

209+
if isinstance(b, raw.types.KeyboardButton):
210+
return InlineKeyboardButton(
211+
text=b.text
212+
)
213+
209214
async def write(self, client: "pyrogram.Client"):
210215
if self.callback_data_with_password is not None:
211216
if isinstance(self.callback_data_with_password, str):

0 commit comments

Comments
 (0)