Skip to content

Commit 2545724

Browse files
committed
1 parent b8770e2 commit 2545724

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

telebot/types.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import json
44
import six
55

6+
import util
7+
68

79
class JsonSerializable:
810
"""
@@ -553,7 +555,7 @@ def add(self, *args):
553555
i = 1
554556
row = []
555557
for button in args:
556-
if isinstance(button, str):
558+
if util.is_string(button):
557559
row.append({'text': button})
558560
else:
559561
row.append(button.to_dic())
@@ -574,7 +576,7 @@ def row(self, *args):
574576
"""
575577
btn_array = []
576578
for button in args:
577-
if isinstance(button, str):
579+
if util.is_string(button):
578580
btn_array.append({'text': button})
579581
else:
580582
btn_array.append(button.to_dic())

0 commit comments

Comments
 (0)