Open nisests opened 6 years ago
I think it's not actual but there is solution. You need to explicitly initialize and start JobQueue
dp = DjangoTelegramBot.getDispatcher('bot_username')
dp.job_queue = JobQueue(DjangoTelegramBot.getBot('bot_username'))
# add jobs here
dp.job_queue.start()
Set pass_job_queue to true, my task can run normally in polling mode, but the job_queue passed in webhook mode is none.
django-telegrambot==1.0.1 python-telegram-bot==10.1.0