2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 21:07:59 +00:00

Fix reply keyboard markup writing

This commit is contained in:
Dan 2018-04-28 08:47:32 +02:00
parent 18e414e2c1
commit 750caa7471

View File

@ -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],