We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01a5a1c commit bfb4c63Copy full SHA for bfb4c63
tests/test_bot.py
@@ -255,6 +255,15 @@ def testGetChatMember(self):
255
self.assertEqual(chat_member.status, "administrator")
256
self._testUserEqualsBot(bot)
257
258
+ @flaky(3, 1)
259
+ @timeout(10)
260
+ def test_get_webhook_info(self):
261
+ url = 'https://python-telegram-bot.org/test/webhook'
262
+ self._bot.set_webhook(url)
263
+ info = self._bot.getWebhookInfo()
264
+ self._bot.set_webhook('')
265
+ self.assertEqual(url, info.url)
266
+
267
def _testUserEqualsBot(self, user):
268
"""Tests if user is our trusty @PythonTelegramBot."""
269
self.assertEqual(user.id, 133505823)
0 commit comments