mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 15:17:00 +01:00
add callback data
This commit is contained in:
parent
01cca924ca
commit
b2fd2ba697
1 changed files with 5 additions and 2 deletions
|
@ -33,8 +33,11 @@ class InlineKeyboardMarkupTest(BaseTest, unittest.TestCase):
|
|||
"""This object represents Tests for Telegram KeyboardButton."""
|
||||
|
||||
def setUp(self):
|
||||
self.inline_keyboard = [[telegram.InlineKeyboardButton(text='button1'),
|
||||
telegram.InlineKeyboardButton(text='button2')]]
|
||||
self.inline_keyboard = \
|
||||
[[telegram.InlineKeyboardButton(text='button1',
|
||||
callback_data='data1'),
|
||||
telegram.InlineKeyboardButton(text='button2',
|
||||
callback_data='data2')]]
|
||||
|
||||
self.json_dict = {
|
||||
'inline_keyboard': [[self.inline_keyboard[0][0].to_dict(),
|
||||
|
|
Loading…
Reference in a new issue