From 679d1dc0d9253a37c1ce09754fe199e9c426a4f6 Mon Sep 17 00:00:00 2001 From: JungDev Date: Tue, 10 Jan 2017 10:26:37 +0100 Subject: [PATCH] Fix api change in version 5.1 https://github.com/python-telegram-bot/python-telegram-bot/blob/v5.1/telegram/update.py#L58 --- django_telegrambot/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_telegrambot/views.py b/django_telegrambot/views.py index a01c58e..d49f168 100644 --- a/django_telegrambot/views.py +++ b/django_telegrambot/views.py @@ -37,7 +37,7 @@ def webhook (request, bot_token): return JsonResponse({}) try: - update = telegram.Update.de_json(data) + update = telegram.Update.de_json(data, bot) dispatcher.process_update(update) logger.debug('Bot <{}> : Processed update {}'.format(bot.username, update)) # Dispatch any errors