James-4u · GitHub

added 2 commits

January 7, 2026 16:15
…ribute
- Add _get_callback_name() helper function to handle callable class instances
- Replace all callback.__name__ accesses with _get_callback_name() calls
- Add test to verify callable class instances work as job callbacks
- Fixes AttributeError when using callable class instances as callbacks
Closes python-telegram-bot#4992
- Remove trailing whitespace from docstring
- Move ContextTypes import to top-level
- Fix line length issues
- Apply ruff formatting fixes

Bibo-Joshi

@James-4u

@James-4u

The official Telegram API docs include has_topics_enabled field for User,
but it's not yet implemented in PTB. Adding it to ignored params to fix
test_official test failure.

@Bibo-Joshi

Read the original on github.com ↗