fix: salvage #33830 for current main — relocate allow_bots bridge to telegram plugin hook, fix stale adapter import in test

This commit is contained in:
teknium1 2026-06-28 00:42:06 -07:00 committed by Teknium
parent fc70d023d8
commit 7b9ff310b6

View file

@ -121,7 +121,7 @@ def _build_telegram_message(*, is_bot: bool):
def _capture_build_source_is_bot(is_bot: bool):
from gateway.platforms.base import MessageType
from gateway.platforms.telegram import TelegramAdapter
from plugins.platforms.telegram.adapter import TelegramAdapter
adapter = object.__new__(TelegramAdapter)
adapter.platform = Platform.TELEGRAM