mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01:00
Fix tests
Data is an optional kwargs in CallbackQuery according to Telegram
This commit is contained in:
parent
67b98e3190
commit
ade89772f4
1 changed files with 1 additions and 1 deletions
|
@ -533,7 +533,7 @@ class UpdaterTest(BaseTest, unittest.TestCase):
|
|||
Update(
|
||||
update_id=0,
|
||||
callback_query=CallbackQuery(
|
||||
0, None, 'This is a test message for regex group matching.', None)))
|
||||
0, None, None, data='This is a test message for regex group matching.')))
|
||||
|
||||
sleep(.1)
|
||||
self.assertEqual(self.received_message, (('This', 'regex group'),
|
||||
|
|
Loading…
Add table
Reference in a new issue