Add a contact
add_contactAdd a user to your Telegram contacts by providing their first name and user ID. Optionally include phone and last name for phone-based lookup.
Instructions
Add a user to your contacts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user": "<user>",
"firstName": "<firstName>"
},
"name": "add_contact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | ||
| phone | No | Required for phone-based contact lookup | |
| lastName | No | ||
| accountId | No | ||
| firstName | Yes | ||
| addPhonePrivacyException | No |