Skip to main content
Glama

Telegram MCP Server

by batianVolyc

telegram_send_file

Send files directly to Telegram when users need to review specific documents, code files, images, or reports. Use this tool for sharing files that require user examination, such as configuration files, generated outputs, or when explicitly requested.

Instructions

发送文件到 Telegram ⚠️ 使用场景(仅在必要时使用): - 用户明确要求查看某个文件:"查看 config.json"、"发送 main.py 给我" - 创建了重要的输出文件需要用户确认(如配置文件、报告等) - 生成了图表、图片等需要展示的文件 - 需要用户下载某个文件进行后续操作 ❌ 不要使用的场景: - 创建普通代码文件(用 telegram_notify 总结即可) - 修改了文件但不需要用户查看内容 - 例行的文件操作 优先级: 1. 优先使用 telegram_notify 总结文件变更 2. 如果用户明确要求,或确实需要查看,才发送文件 3. 对于代码文件,如果只需要展示关键片段,优先使用 telegram_send_code 参数: - file_path: 文件路径(相对于项目目录或绝对路径) - caption: 可选说明文字 支持: - 文本文件、代码文件 - 图片、PDF、文档等任意文件类型 - 自动处理大文件 示例: telegram_send_file( file_path="src/main.py", caption="修复后的主文件(用户要求查看)" )

Input Schema

NameRequiredDescriptionDefault
captionNo可选说明文字
file_pathYes文件路径

Input Schema (JSON Schema)

{ "properties": { "caption": { "description": "可选说明文字", "type": "string" }, "file_path": { "description": "文件路径", "type": "string" } }, "required": [ "file_path" ], "type": "object" }

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/batianVolyc/telegram-mcp-server'

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