mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-02 15:25:41 +00:00
Fix reply keyboard markup writing
This commit is contained in:
@@ -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],
|
||||
|
Reference in New Issue
Block a user