contacts.addContact
Add an existing telegram user as contact.
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
add_phone_privacy_exception | true | いいえ | Allow the other user to see our phone number? |
id | InputUser | はい | Telegram ID of the other user |
first_name | string | はい | 名 |
last_name | string | はい | 姓 |
phone | string | はい | User's phone number, may be omitted to simply add the user to the contact list, without a phone number. |
note | TextWithEntities | いいえ | この連絡先の非公開メモ。当社のみが閲覧できます。連絡先メモの詳細については、[ここ »](https://core.telegram.org/api/contacts.md#private-notes-for-contacts) を参照してください。 |
レスポンス
Updates
MTProto RPC
- 400 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
- 400 · CONTACT_ID_INVALID — The provided contact ID is invalid.
- 400 · CONTACT_NAME_EMPTY — Contact name empty.
- 400 · MSG_ID_INVALID — Invalid message ID provided.