Closed OriYitzhaki closed 3 years ago
You're using old handler signature, It should look like
def job_callback(context: CallbackContext):
...
Since from v12 onwards, only CallbackContext
gets passed into job callbacks, job is available as context.job
similarly job_queue
can be accessed as context.job_queue
.
Steps to reproduce
Expected behaviour
Well... that just should and send messages.
Actual behaviour
TypeError: callback_timer() missing 1 required positional argument: 'job_queue' the last arg is not passed.
Configuration
Operating System: Windows 10.
Version of Python, python-telegram-bot & dependencies: python 3.8, python-telegram-bot Latest
$ python -m telegram
Logs
Insert logs here (if necessary)