Integrations
Telegram Integration
Use Telegram as an actual user account via MTProto sessions, not the Bot API
The Telegram integration provides access to use Telegram as an actual user account via MTProto sessions, not the Bot API through the Integrate MCP server.
Installation
The Telegram integration is included with the SDK:
import { telegramIntegration } from "integrate-sdk/server";Setup
Add Telegram to your server configuration. Provide credentials via environment variables or integration config:
import { createMCPServer, telegramIntegration } from "integrate-sdk/server";
export const { client: serverClient } = createMCPServer({
apiKey: process.env.INTEGRATE_API_KEY,
integrations: [
telegramIntegration({
// See configuration options below
}),
],
});Client-Side Usage
import { client } from "integrate-sdk";
const result = await client.telegram.authSendCode({
phone_number: "value",
});
console.log(result);Environment Variables
TELEGRAM_API_KEY(when supported by this integration)
Configuration Options
Prop
Type
Tools
telegram_auth_send_code
Auth send code
Prop
Type
telegram_auth_sign_in
Auth sign in
Prop
Type
telegram_auth_check_password
Auth check password
Prop
Type
telegram_get_me
Get me
Prop
Type
telegram_resolve_username
Resolve username
Prop
Type
telegram_list_dialogs
List dialogs
Prop
Type
telegram_get_history
Get history
Prop
Type
telegram_search_messages
Search messages
Prop
Type
telegram_send_message
Send message
Prop
Type
Notes
- Category: Communication
- Authentication mode: API key