Skip to main content
Glama

Telegram MCP Server

by batianVolyc

telegram_send_code

Send code snippets with syntax highlighting to Telegram for error debugging, bug fixes, code reviews, or when users request specific code examples.

Instructions

发送代码段到 Telegram(带语法高亮) ⚠️ 使用场景(仅在必要时使用): - 遇到关键错误需要展示问题代码 - 修复了重要 bug,需要展示修复方案 - 用户明确要求查看某段代码 - 需要用户 review 关键代码片段 ❌ 不要使用的场景: - 一般性任务完成(使用 telegram_notify) - 创建了新文件(使用 telegram_send_file) - 例行操作(使用 telegram_notify 总结即可) 参数: - code: 代码内容(建议不超过50行) - language: 编程语言(python/javascript/go/rust/bash/json/yaml等) - caption: 可选说明文字(建议填写,解释发送这段代码的原因) 示例: telegram_send_code( code="def hello():\n print('Hello')", language="python", caption="修复了空指针异常的关键函数" )

Input Schema

NameRequiredDescriptionDefault
captionNo可选说明文字
codeYes代码内容
languageNo编程语言(python/javascript/go/rust/bash/json/yaml等)

Input Schema (JSON Schema)

{ "properties": { "caption": { "description": "可选说明文字", "type": "string" }, "code": { "description": "代码内容", "type": "string" }, "language": { "default": "", "description": "编程语言(python/javascript/go/rust/bash/json/yaml等)", "type": "string" } }, "required": [ "code" ], "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