add callback data

This commit is contained in:
Jannes Höke 2016-04-24 19:00:21 +02:00
parent 01cca924ca
commit b2fd2ba697

View file

@ -33,8 +33,11 @@ class InlineKeyboardMarkupTest(BaseTest, unittest.TestCase):
"""This object represents Tests for Telegram KeyboardButton.""" """This object represents Tests for Telegram KeyboardButton."""
def setUp(self): def setUp(self):
self.inline_keyboard = [[telegram.InlineKeyboardButton(text='button1'), self.inline_keyboard = \
telegram.InlineKeyboardButton(text='button2')]] [[telegram.InlineKeyboardButton(text='button1',
callback_data='data1'),
telegram.InlineKeyboardButton(text='button2',
callback_data='data2')]]
self.json_dict = { self.json_dict = {
'inline_keyboard': [[self.inline_keyboard[0][0].to_dict(), 'inline_keyboard': [[self.inline_keyboard[0][0].to_dict(),