Skip to content

Documentation / @agentick/connector-telegram / TelegramPlugin

Class: TelegramPlugin ​

Defined in: telegram-plugin.ts:36

Telegram gateway plugin.

Bridges a Telegram bot to agent sessions via the gateway plugin system. Receives messages from Telegram, routes them to sessions via PluginContext.sendToSession(), and delivers responses back. Tool confirmations are presented as inline keyboards or text prompts.

Registers a telegram:send method for outbound messaging from tool handlers.

Implements ​

Constructors ​

Constructor ​

new TelegramPlugin(options): TelegramPlugin

Defined in: telegram-plugin.ts:58

Parameters ​

options ​

TelegramPluginOptions

Returns ​

TelegramPlugin

Properties ​

id ​

readonly id: "telegram" = "telegram"

Defined in: telegram-plugin.ts:37

Unique identifier for this plugin

Implementation of ​

GatewayPlugin.id

Methods ​

destroy() ​

destroy(): Promise<void>

Defined in: telegram-plugin.ts:95

Called when the plugin is removed or the gateway stops

Returns ​

Promise<void>

Implementation of ​

GatewayPlugin.destroy


initialize() ​

initialize(ctx): Promise<void>

Defined in: telegram-plugin.ts:66

Called when the plugin is registered via gateway.use()

Parameters ​

ctx ​

PluginContext

Returns ​

Promise<void>

Implementation of ​

GatewayPlugin.initialize

Released under the ISC License.