Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TELEGRAM_PHONENoPhone number for authentication (User mode)
TELEGRAM_API_IDNoAPI ID from my.telegram.org (required for User mode)
TELEGRAM_API_HASHNoAPI hash from my.telegram.org (required for User mode)
TELEGRAM_DATA_DIRNoData directory (default: ~/.better-telegram-mcp)
TELEGRAM_PASSWORDNo2FA password if enabled
TELEGRAM_BOT_TOKENNoBot token from @BotFather (required for Bot mode)
TELEGRAM_SESSION_NAMENoSession file name (default: default)

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/n24q02m/better-telegram-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server