mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-10 12:02:39 +01:00
add setWebhook to mock bot
This commit is contained in:
parent
0006294f29
commit
1c7e784662
1 changed files with 4 additions and 1 deletions
|
@ -28,7 +28,7 @@ import re
|
|||
sys.path.append('.')
|
||||
|
||||
from telegram import Update, Message, TelegramError
|
||||
from base import BaseTest
|
||||
from tests.base import BaseTest
|
||||
|
||||
|
||||
class BotEventHandlerTest(BaseTest, unittest.TestCase):
|
||||
|
@ -167,6 +167,9 @@ class MockBot:
|
|||
update.message = message
|
||||
return update
|
||||
|
||||
def setWebhook(self, url=None, certificate=None):
|
||||
pass
|
||||
|
||||
def getUpdates(self,
|
||||
offset=None,
|
||||
limit=100,
|
||||
|
|
Loading…
Reference in a new issue