Send message to phone
send_message_to_phoneSend text messages or files to a Telegram phone number. Automatically creates a temporary contact with the option to remove it after sending.
Instructions
Send to a phone number: may create a temporary contact, then send text or files. Success: send result plus contact_was_new / contact_removed when applicable. Full documentation: https://github.com/leshchenko1979/fast-mcp-telegram/blob/main/docs/Tools-Reference.md
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone_number | Yes | E.164 phone number with country code, e.g. +1234567890 (must be on Telegram). | |
| message | Yes | Message text. When sending files, used as caption. | |
| first_name | No | First name when creating a temporary contact. | Contact |
| last_name | No | Last name when creating a temporary contact. | Name |
| remove_if_new | No | If true, delete the contact after send when it was created only for this send. | |
| reply_to_msg_id | No | Reply to this message id in the target chat after resolve. | |
| parse_mode | No | 'markdown', 'html', or 'auto' (detect from content). Default is 'auto'. | auto |
| files | No | List of attachment URLs, local paths, or data URIs (one or more strings). data: URIs (data:<mime>;base64,<payload>) work in all server modes; local paths work in stdio mode only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| error | No | ||
| operation | No | ||
| code | No | ||
| params | No | ||
| exception | No | ||
| action | No | ||
| error_code | No | ||
| message_id | No | ||
| date | No | ||
| chat | No | ||
| text | No | ||
| status | No | ||
| sender | No | ||
| reply_markup | No | ||
| edit_date | No | ||
| topic_id | No | ||
| phone_number | No | ||
| contact_was_new | No | ||
| contact_removed | No |