mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Fix reply keyboard markup writing
This commit is contained in:
parent
18e414e2c1
commit
750caa7471
@ -68,7 +68,6 @@ class ReplyKeyboardMarkup(Object):
|
||||
|
||||
@staticmethod
|
||||
def read(kb, *args):
|
||||
print(kb)
|
||||
keyboard = []
|
||||
|
||||
for i in kb.rows:
|
||||
@ -89,7 +88,7 @@ class ReplyKeyboardMarkup(Object):
|
||||
def write(self):
|
||||
return RawReplyKeyboardMarkup(
|
||||
rows=[KeyboardButtonRow(
|
||||
[KeyboardButton(j)
|
||||
[KeyboardButton(j).write()
|
||||
if isinstance(j, str) else j.write()
|
||||
for j in i]
|
||||
) for i in self.keyboard],
|
||||
|
Loading…
x
Reference in New Issue
Block a user