1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00
This commit is contained in:
Pieter van den Ham 2016-05-19 10:02:59 +02:00
parent b8770e2c04
commit 2545724a6f

View File

@ -3,6 +3,8 @@
import json
import six
import util
class JsonSerializable:
"""
@ -553,7 +555,7 @@ class ReplyKeyboardMarkup(JsonSerializable):
i = 1
row = []
for button in args:
if isinstance(button, str):
if util.is_string(button):
row.append({'text': button})
else:
row.append(button.to_dic())
@ -574,7 +576,7 @@ class ReplyKeyboardMarkup(JsonSerializable):
"""
btn_array = []
for button in args:
if isinstance(button, str):
if util.is_string(button):
btn_array.append({'text': button})
else:
btn_array.append(button.to_dic())