Send message to phone
send_message_to_phoneSend text messages or files to a Telegram user by phone number. Optionally creates a temporary contact and removes 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 |
|---|---|---|---|
No arguments | |||