Telegram Provider
Telegram bot integration for creating AI-powered Telegram bots
@axiomkit/telegram
@axiomkit/telegram
integration for creating AI-powered Telegram bots with message processing and command handling.
Installation
pnpm add @axiomkit/telegram telegraf
Quick Start
import { createGroq } from "@ai-sdk/groq";
import { createAgent, LogLevel, validateEnv } from "@axiomkit/core";
import { telegram } from "@axiomkit/telegram";
import * as z from "zod/v4";
// Simple Chat
const env = validateEnv(
z.object({
TELEGRAM_TOKEN: z.string().min(1, "TELEGRAM_TOKEN is required"),
GROQ_API_KEY: z.string().min(1, "GROQ_API_KEY is required"),
})
);
const groq = createGroq({
apiKey: env.GROQ_API_KEY!,
});
createAgent({
logLevel: LogLevel.DEBUG,
model: groq("deepseek-r1-distill-llama-70b"),
providers: [telegram],
}).start();
Next Steps
- Core Package - Learn about the core framework
- CLI Extension - Build terminal-based agents
- Discord Extension - Create Discord bots