- Notifications
You must be signed in to change notification settings - Fork5.9k
Open
Description
Steps to Reproduce
I have a job, defined as
fromtelegram.extimportContextTypesclassJob:asyncdef__call__(self,context:ContextTypes.DEFAULT_TYPE): ...application.job_queue.run_repeating(callback=Job(),interval=timedelta(seconds=30, ),)
And I get an error
AttributeError: 'Job' object has no attribute '__name__'. Did you mean: '__ne__'?
Expected behaviour
Job takes the name of the class as his name
Actual behaviour
The code crashes with an errorAttributeError: 'Job' object has no attribute '__name__'. Did you mean: '__ne__'?
Operating System
macOS 13.4.1
Version of Python, python-telegram-bot & dependencies
Python: 3.11.3Python-telegram-bot: 22.3APScheduler: 3.10.1
Relevant log output
Additional Context
No response