
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@agentick/connector-telegram
Advanced tools
Telegram plugin for Agentick gateway — bridge Telegram bots to agent sessions
Telegram platform adapter for the Agentick connector system. Bridge a Telegram bot to an agent session.
pnpm add @agentick/connector-telegram grammy
grammy is a peer dependency.
import { createConnector } from "@agentick/connector";
import { TelegramPlatform } from "@agentick/connector-telegram";
const connector = createConnector(
client,
new TelegramPlatform({
token: process.env.TELEGRAM_BOT_TOKEN!,
allowedUsers: [parseInt(process.env.TELEGRAM_USER_ID!)],
}),
{
sessionId: "main",
contentPolicy: "summarized",
deliveryStrategy: "debounced",
debounceMs: 2000,
},
);
await connector.start();
interface TelegramConnectorOptions {
token: string;
allowedUsers?: number[];
chatId?: number;
confirmationStyle?: "inline-keyboard" | "text";
}
token — Telegram bot token from @BotFather.
allowedUsers — Whitelist of Telegram user IDs. Empty array allows all
users. Get your ID from @userinfobot.
chatId — Specific chat to use. If omitted, auto-detects from the first
incoming message.
confirmationStyle — How tool confirmations are presented. Default:
"inline-keyboard".
Sends a message with Approve/Deny buttons. The user taps a button, the confirmation resolves.
Sends a text prompt. The next message from the user is parsed as the confirmation response. Supports natural language — "yes but skip tests" is approved with the full text as reason.
For a conversational bot experience:
{
contentPolicy: "summarized", // collapse tool calls into brief summaries
deliveryStrategy: "debounced", // wait for a pause before sending
debounceMs: 2000,
}
For a long-running agent that reports results:
{
contentPolicy: "text-only", // only deliver text, no tool noise
deliveryStrategy: "on-idle", // deliver only when execution completes
}
TelegramPlugin connects a bot directly to the gateway without a separate
connector process:
import { createGateway } from "@agentick/gateway";
import { TelegramPlugin } from "@agentick/connector-telegram";
const gateway = createGateway({
apps: { myApp },
defaultApp: "myApp",
plugins: [
new TelegramPlugin({
token: process.env.TELEGRAM_BOT_TOKEN!,
allowedUsers: [12345678],
}),
],
});
The plugin receives messages from Telegram, routes them to sessions, and
delivers responses back. Registers a telegram:send method for outbound
messaging from tool handlers.
With the gateway config system, Telegram
options live in agentick.config.json:
{
"connectors": {
"telegram": {
"token": "${env:TELEGRAM_BOT_TOKEN}",
"allowedUsers": [12345678],
"chatId": 987654321
}
}
}
Read it from the config store:
import { getConfig } from "@agentick/gateway";
const telegram = getConfig().get("connectors")?.telegram;
if (telegram) {
gateway.use(new TelegramPlugin(telegram));
}
Importing @agentick/connector-telegram augments the gateway's
ConnectorConfigs type, so get("connectors")?.telegram is fully typed.
export { TelegramPlugin, type TelegramPluginOptions } from "./telegram-plugin.js";
export { escapeMarkdownV2 } from "./telegram-format.js";
export { parseTextConfirmation, formatConfirmationMessage } from "./confirmation-utils.js";
FAQs
Telegram plugin for Agentick gateway — bridge Telegram bots to agent sessions
We found that @agentick/connector-telegram demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.