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.