Layer 220
ContactsAcceptContact
If the add contact action bar is active, add that user as contact
method
Users
contacts.acceptContact#f831a20f id:InputUser = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Id | InputUser | The user to add as contact |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CONTACT_ADD_MISSING | Contact to add is missing. |
| 400 | CONTACT_ID_INVALID | The provided contact ID is invalid. |
| 400 | CONTACT_REQ_MISSING | Missing contact request. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
Gogram Example
// ContactsAcceptContact - positional arguments result, err := client.ContactsAcceptContact(&tg.InputUserSelf{}) if err != nil { // handle error } // result is *tg.Updates