Telegram
Overview
SLUG: TELEGRAM
Description
Telegram is a cloud-based messaging app with a focus on security and speed. Build bots to send messages, manage chats, and interact with users.
Authentication Details
API Key
Connecting to Telegram
Create an auth config
Use the dashboard to create an auth config for the Telegram toolkit. This allows you to connect multiple Telegram accounts to Composio for agents to use.
Create and Get auth config ID
Click “Create Telegram Auth Config”. After creation, copy the displayed ID starting with ac_
. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database.
This ID will be used to create connections to the toolkit for a given user.
Connect Your Account
Using API Key
Tools
Executing tools
To prototype you can execute some tools to see the responses and working on the Telegram toolkit’s playground
OpenAI (Python)
Anthropic (TypeScript)
Google (Python)
Vercel (TypeScript)
Tool List
TELEGRAM_SEND_MESSAGE
Tool Name: Send Message
Description
Action Parameters
Action Response
TELEGRAM_ANSWER_CALLBACK_QUERY
Tool Name: Answer Callback Query
Description
Action Parameters
Action Response
TELEGRAM_DELETE_MESSAGE
Tool Name: Delete Message
Description
Action Parameters
Action Response
TELEGRAM_EDIT_MESSAGE
Tool Name: Edit Message
Description
Action Parameters
Action Response
TELEGRAM_EXPORT_CHAT_INVITE_LINK
Tool Name: Export Chat Invite Link
Description
Action Parameters
Action Response
TELEGRAM_FORWARD_MESSAGE
Tool Name: Forward Message
Description
Action Parameters
Action Response
TELEGRAM_GET_CHAT
Tool Name: Get Chat Info
Description
Action Parameters
Action Response
TELEGRAM_GET_CHAT_ADMINISTRATORS
Tool Name: Get Chat Administrators
Description
Action Parameters
Action Response
TELEGRAM_GET_CHAT_HISTORY
Tool Name: Get Chat History
Description
Action Parameters
Action Response
TELEGRAM_GET_CHAT_MEMBERS_COUNT
Tool Name: Get Chat Members Count
Description
Action Parameters
Action Response
TELEGRAM_GET_ME
Tool Name: Get Bot Info
Description
Action Parameters
Action Response
TELEGRAM_GET_UPDATES
Tool Name: Get Updates
Description
Action Parameters
Action Response
TELEGRAM_SEND_DOCUMENT
Tool Name: Send Document
Description
Action Parameters
Action Response
TELEGRAM_SEND_LOCATION
Tool Name: Send Location
Description
Action Parameters
Action Response
TELEGRAM_SEND_PHOTO
Tool Name: Send Photo
Description
Action Parameters
Action Response
TELEGRAM_SEND_POLL
Tool Name: Send Poll
Description
Action Parameters
Action Response
TELEGRAM_SET_MY_COMMANDS
Tool Name: Set Bot Commands
Description
Action Parameters
Action Response