Send message to phone
send_message_to_phoneSend text or files to a Telegram phone number, with automatic temporary contact creation and optional removal after delivery.
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 or local paths (one or more strings). Local paths work in stdio mode only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||