Skip to content

Commit

Permalink
(fix): InlineKeyboardButton parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
SpEcHiDe committed Feb 9, 2025
1 parent 5fc6e19 commit 9778854
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyrogram/types/bots_and_keyboards/inline_keyboard_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ def read(b: "raw.base.KeyboardButton"):
)
)

if isinstance(b, raw.types.KeyboardButton):
return InlineKeyboardButton(
text=b.text
)

async def write(self, client: "pyrogram.Client"):
if self.callback_data_with_password is not None:
if isinstance(self.callback_data_with_password, str):
Expand Down

0 comments on commit 9778854

Please sign in to comment.