Class TelegramChannelAdapter

Channel adapter for Telegram using the Telegraf SDK.

Uses dynamic import so telegraf is only required at runtime when the adapter is actually initialized. Falls back to grammy if telegraf is not available.

Capabilities: text, rich_text, images, video, audio, voice_notes, stickers, reactions, buttons, inline_keyboard, group_chat, channels, editing, deletion.

Hierarchy (view full)

Constructors

Methods

Properties

status: ChannelConnectionStatus = 'disconnected'
connectedSince: undefined | string
errorMessage: undefined | string
platformInfo: Record<string, unknown> = {}
auth: undefined | ChannelAuthConfig & {
    params?: TelegramAuthParams;
}

Stored auth config so reconnect() can re-use it.

retryConfig: RetryConfig
platform: ChannelPlatform = 'telegram'

Platform this adapter serves.

displayName: "Telegram" = 'Telegram'

Human-readable display name (e.g., "WhatsApp Business").

capabilities: readonly ChannelCapability[] = ...

Declared capabilities of this adapter.