free-claude-code/messaging/telegram.py
2026-02-18 04:13:41 -08:00

15 lines
461 B
Python

"""Backward-compatible re-export. Use messaging.platforms.telegram for new code."""
from .platforms.telegram import (
TELEGRAM_AVAILABLE,
TelegramPlatform,
)
# Re-export telegram.error types when python-telegram-bot is installed
__all__ = ["TELEGRAM_AVAILABLE", "TelegramPlatform"]
try:
from telegram.error import NetworkError, RetryAfter, TelegramError
__all__ += ["NetworkError", "RetryAfter", "TelegramError"]
except ImportError:
pass