Skip to content

Commit

Permalink
Fix api change in version 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JungDev authored Jan 10, 2017
1 parent 84bcb88 commit 679d1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_telegrambot/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 679d1dc

Please sign in to comment.