telebotter / django-telegrambot

Simple app for Telegram bot in Django
BSD 3-Clause "New" or "Revised" License
14 stars 7 forks source link

Dispatcher initialization problem #7

Closed maxatp closed 4 years ago

maxatp commented 4 years ago

If we define dispatcher with dispatcher property, then it works correctly according to the new context approach of ptb 12 dp = DjangoTelegramBot.dispatcher

If we define dispatcher with getDispatcher method, then dispatcher is constructed for old version (not for ptb 12) dp = DjangoTelegramBot.getDispatcher('my_token')

maxatp commented 4 years ago

I forgot to put CONTEXT: TRUE into settings