INNER CODE UNIT · Python
__init__
PleasePrompto/ductor · ductor_bot/messenger/telegram/app.py:182
def __init__(
self,
config: AgentConfig,
*,
agent_name: str = "main",
bus: MessageBus | None = None,
lock_pool: LockPool | None = None,
) -> None:
self._config = config
self._agent_name = agent_name
self._orchestrator: Orchestrator | None = None
self._abort_all_callback: Callable[[], Awaitable[int]] | None = None
self._bot = Bot(
token=config.telegram_token,
default=DefaultBotProperties(parse_mode=ParseMode.HTML),
)
self._notification_service: NotificationService = TelegramNotificationService(