Skip to content

Commit b2fd2ba

Browse files
committed
add callback data
1 parent 01cca92 commit b2fd2ba

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/test_inlinekeyboardmarkup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ class InlineKeyboardMarkupTest(BaseTest, unittest.TestCase):
3333
"""This object represents Tests for Telegram KeyboardButton."""
3434

3535
def setUp(self):
36-
self.inline_keyboard = [[telegram.InlineKeyboardButton(text='button1'),
37-
telegram.InlineKeyboardButton(text='button2')]]
36+
self.inline_keyboard = \
37+
[[telegram.InlineKeyboardButton(text='button1',
38+
callback_data='data1'),
39+
telegram.InlineKeyboardButton(text='button2',
40+
callback_data='data2')]]
3841

3942
self.json_dict = {
4043
'inline_keyboard': [[self.inline_keyboard[0][0].to_dict(),

0 commit comments

Comments
 (0)