Skip to main content
Glama
TONresistor

Telegram MCP Server

by TONresistor

sendInvoice

Send payment invoices to Telegram users with product title, description, currency, and price breakdown, enabling direct in-chat payments.

Instructions

Send an invoice to a user. On success, the sent Message is returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesProduct name, 1-32 characters
pricesYesPrice breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, etc.)
chat_idYesUnique identifier for the target chat or username of the target channel (in the format @channelusername)
payloadYesBot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.
currencyYesThree-letter ISO 4217 currency code, or "XTR" for payments in Telegram Stars
need_nameNoPass True if you require the user's full name to complete the order. Ignored for payments in Telegram Stars.
photo_urlNoURL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service.
need_emailNoPass True if you require the user's email address to complete the order. Ignored for payments in Telegram Stars.
photo_sizeNoPhoto size in bytes
descriptionYesProduct description, 1-255 characters
is_flexibleNoPass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.
photo_widthNoPhoto width
photo_heightNoPhoto height
reply_markupNoA JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown.
provider_dataNoJSON-serialized data about the invoice, which will be shared with the payment provider.
max_tip_amountNoThe maximum accepted amount for tips in the smallest units of the currency. Defaults to 0.
provider_tokenNoPayment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.
protect_contentNoProtects the contents of the sent message from forwarding and saving.
start_parameterNoUnique deep-linking parameter. If left empty, forwarded copies of the sent message will have a Pay button.
reply_parametersNoDescription of the message to reply to.
message_effect_idNoUnique identifier of the message effect to be added to the message; for private chats only.
message_thread_idNoUnique identifier for the target message thread (topic) of the forum; for forum supergroups only
need_phone_numberNoPass True if you require the user's phone number to complete the order. Ignored for payments in Telegram Stars.
allow_paid_broadcastNoPass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message.
disable_notificationNoSends the message silently. Users will receive a notification with no sound.
need_shipping_addressNoPass True if you require the user's shipping address to complete the order. Ignored for payments in Telegram Stars.
suggested_tip_amountsNoA JSON-serialized array of suggested amounts of tips in the smallest units of the currency. At most 4 suggested tip amounts can be specified.
send_email_to_providerNoPass True if the user's email address should be sent to the provider. Ignored for payments in Telegram Stars.
send_phone_number_to_providerNoPass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram Stars.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure. It does add one useful fact — the sent Message is returned on success — which matters because no output schema exists. However, it omits critical behavioral context for a payment operation: sending an invoice kicks off a payment flow, generates a pre-checkout/checkout query to the bot, and presents the user with a Pay button. This is a significant gap for a tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences with zero waste. The core action is front-loaded, and the second sentence about the return value earns its place given that no output schema is available to communicate the result type.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 29-parameter payment operation with no output schema and no annotations, a two-sentence description is insufficient. The schema covers parameter semantics, but the tool's role in the payment lifecycle, its relationship to createInvoiceLink, and its side effects on both user and bot are entirely undocumented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the input schema already documents every one of the 29 parameters in detail. The description adds no parameter-level information beyond the schema, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Send an invoice to a user' — which clearly separates it from the many sibling send-* tools (sendMessage, sendPhoto, sendPoll, etc.). It does not explicitly name its closest sibling createInvoiceLink, so the distinction between direct-send and link-based invoicing is left to inference. The scope is otherwise unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance is provided. The description never mentions that this is the direct-send alternative to createInvoiceLink, nor the conditions that would select one over the other. No prerequisites (e.g., requiring a payment provider token) or exclusions are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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

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