/** * Telegram Outbound Sender * * Handles all outbound message sending to Telegram: * - Text messages (with chunking) * - Data URL media (base64 encoded) * - Remote URL media * - Voice messages (TTS audio) * - Typing indicators * * TTS audio is passed as mediaUrl with audioAsVoice flag. * No TTS generation happens here - it's done at the dispatch layer. */ import type { Config } from '@xopcai/xopc/config/schema.js'; import type { ChannelSendOptions, ChannelSendResult } from '@xopcai/xopc/channels/channel-domain.js'; import type { TelegramAccountManager } from './account-manager.js'; export interface OutboundSenderDeps { accountManager: TelegramAccountManager; config: Config; } /** * Create outbound message sender * * Note: TTS is handled at the dispatch layer (ChannelManager), * not here. If a message has TTS audio, it will be passed as * mediaUrl with audioAsVoice=true. */ export declare function createOutboundSender(deps: OutboundSenderDeps): { send: (options: ChannelSendOptions) => Promise; };