From 085c90f7c8722615bf9dc5b2a4c1529666aa6a88 Mon Sep 17 00:00:00 2001 From: "Francesco Scarlato (Jungmann)" Date: Tue, 22 Mar 2016 10:14:28 +0000 Subject: [PATCH] version 0.1.8 --- HISTORY.rst | 6 ++++++ django_telegrambot/__init__.py | 2 +- django_telegrambot/apps.py | 2 +- requirements.txt | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) 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