mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 14:24:51 +00:00
Fix reply keyboard markup writing
This commit is contained in:
parent
18e414e2c1
commit
750caa7471
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Reference in a new issue