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:
parent
18e414e2c1
commit
750caa7471
@ -68,7 +68,6 @@ class ReplyKeyboardMarkup(Object):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def read(kb, *args):
|
def read(kb, *args):
|
||||||
print(kb)
|
|
||||||
keyboard = []
|
keyboard = []
|
||||||
|
|
||||||
for i in kb.rows:
|
for i in kb.rows:
|
||||||
@ -89,7 +88,7 @@ class ReplyKeyboardMarkup(Object):
|
|||||||
def write(self):
|
def write(self):
|
||||||
return RawReplyKeyboardMarkup(
|
return RawReplyKeyboardMarkup(
|
||||||
rows=[KeyboardButtonRow(
|
rows=[KeyboardButtonRow(
|
||||||
[KeyboardButton(j)
|
[KeyboardButton(j).write()
|
||||||
if isinstance(j, str) else j.write()
|
if isinstance(j, str) else j.write()
|
||||||
for j in i]
|
for j in i]
|
||||||
) for i in self.keyboard],
|
) for i in self.keyboard],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user