diff --git a/HISTORY.rst b/HISTORY.rst index 7d982ca..1549639 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,12 @@ History ------- +0.1.8 (2016-03-22) +++++++++++++++++++ + +* Update for deprecation in python-telegram-bot release v3.4 + + 0.1.5 (2016-01-28) ++++++++++++++++++ diff --git a/django_telegrambot/__init__.py b/django_telegrambot/__init__.py index 534a23c..a04c319 100644 --- a/django_telegrambot/__init__.py +++ b/django_telegrambot/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.1.7' +__version__ = '0.1.8' default_app_config = 'django_telegrambot.apps.DjangoTelegramBot' \ No newline at end of file diff --git a/django_telegrambot/apps.py b/django_telegrambot/apps.py index 8f7d7f4..0c9cb7c 100644 --- a/django_telegrambot/apps.py +++ b/django_telegrambot/apps.py @@ -91,7 +91,7 @@ def ready(self): logger.info('Telegram Bot <{}> setting webhook [ {} ] : {}'.format(bot.username,hookurl,setted)) - DjangoTelegramBot.dispatchers.append(telegram.Dispatcher(bot, None)) + DjangoTelegramBot.dispatchers.append(telegram.ext.Dispatcher(bot, None)) DjangoTelegramBot.bots.append(bot) DjangoTelegramBot.bot_tokens.append(bot.token) DjangoTelegramBot.bot_usernames.append(bot.username) diff --git a/requirements.txt b/requirements.txt index 043454f..3d7241d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ django>=1.8.0 # Additional requirements go here -python-telegram-bot>=3.2.0 +python-telegram-bot>=3.4.0