Commit Graph
1 Commits
Author SHA1 Message Date
cbazza 9475730769 Update Telegram Bot to v22.x API (fix import error)
Changes:
- Updated from python-telegram-bot 13.15 to 22.5
- Changed from sync API to async/await pattern
- Updated all command handlers to async
- Updated Application builder (new API)
- Fixed ModuleNotFoundError: No module named 'telegram'

Technical changes:
- Updater -> Application.builder()
- CommandHandler now uses async functions
- Context.DEFAULT_TYPE instead of CallbackContext
- await for all telegram API calls

Compatibility: python-telegram-bot 22.5 works with Python 3.12
2025-12-26 20:09:41 +01:00