Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

job_queue is none when using webhook mode #22

Open
nisests opened this issue Jul 18, 2018 · 1 comment
Open

job_queue is none when using webhook mode #22

nisests opened this issue Jul 18, 2018 · 1 comment

Comments

@nisests
Copy link

nisests commented Jul 18, 2018

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

@alisher-matkurbanov
Copy link

alisher-matkurbanov commented Apr 24, 2019

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() 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants