The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(telegram): rebind TypeHandler in the deferred SDK import
Pavel Lesyuka85e45da1395
diff --git a/plugins/platforms/telegram/adapter.py b/plugins/platforms/telegram/adapter.pyindex cef6519cfaf..aff16824bc6 100644--- a/plugins/platforms/telegram/adapter.py+++ b/plugins/platforms/telegram/adapter.py@@ -416,7 +416,7 @@ def check_telegram_requirements() -> bool:global TELEGRAM_AVAILABLE, Update, Bot, Message, InlineKeyboardButtonglobal InlineKeyboardMarkup, LinkPreviewOptions, Applicationglobal CommandHandler, CallbackQueryHandler, TelegramMessageHandler- global ContextTypes, filters, ParseMode, ChatType, HTTPXRequest+ global ContextTypes, filters, ParseMode, ChatType, HTTPXRequest, TypeHandlerif TELEGRAM_AVAILABLE:return Truetry:@@ -436,6 +436,7 @@ def check_telegram_requirements() -> bool:CallbackQueryHandler as _CQH,MessageHandler as _MH,ContextTypes as _CT, filters as _filters,+ TypeHandler as _TH,)from telegram.constants import ParseMode as _PM, ChatType as _CtTfrom telegram.request import HTTPXRequest as _HR@@ -456,6 +457,7 @@ def check_telegram_requirements() -> bool:ParseMode = _PMChatType = _CtTHTTPXRequest = _HR+ TypeHandler = _THTELEGRAM_AVAILABLE = Truereturn True