[BUG] With ptb_sqlalchemy_jobstore exeception when rescheduling jobs
Giulianini opened this issue · 0 comments
Giulianini commented
Module this issue is about
Please state which module you're reporting a bug for: ptb_sqlalchemy_jobstore
Steps to reproduce
-
Use job_queue scheduler with
PTBSQLAlchemyJobStore
as jobostore -
Reschedule a Job
Expected behaviour
Can reschedule a job
Actual behaviour
When trying to modify a job (it's deserialized and processed by jobstore.py
) I come through this exeception
File "/Users/luca/Desktop/memo-telegram-bot/src/scheduler/jobstore.py", line 88, in _prepare_job
tg_job = Job._from_aps_job(job) # pylint: disable=W0212
File "/Users/luca/.virtualenvs/memo-telegram-bot/lib/python3.10/site-packages/telegram/ext/_jobqueue.py", line 810, in _from_aps_job
return job.func.__self__
AttributeError: 'function' object has no attribute '__self__'
Configuration
Operating System:
Version of Python, python-telegram-bot & dependencies:
$ python -m telegram
python-telegram-bot 20.2
Bot API 6.6
Python 3.10.1 (main, Apr 2 2022, 16:59:14) [Clang 13.0.0 (clang-1300.0.29.30)]