Skip to content

Documentation / @agentick/connector-telegram / TelegramPluginOptions

Interface: TelegramPluginOptions ​

Defined in: telegram-plugin.ts:13

Properties ​

allowedUsers? ​

optional allowedUsers: number[]

Defined in: telegram-plugin.ts:17

Whitelist of allowed Telegram user IDs. Empty = allow all.


chatId? ​

optional chatId: number

Defined in: telegram-plugin.ts:19

Specific chat ID to use. If omitted, auto-detects from first message.


confirmationStyle? ​

optional confirmationStyle: "text" | "inline-keyboard"

Defined in: telegram-plugin.ts:21

How to present tool confirmations. Default: "inline-keyboard".


sessionKeyPattern()? ​

optional sessionKeyPattern: (chatId) => string

Defined in: telegram-plugin.ts:23

Session key pattern. Default: "default:telegram-{chatId}"

Parameters ​

chatId ​

number

Returns ​

string


token ​

token: string

Defined in: telegram-plugin.ts:15

Telegram bot token.

Released under the ISC License.