If the add contact action bar is active, add that user as contact
Method schema is available as of layer 102. Switch »
| Name | Type | Description |
|---|---|---|
| id | InputUser | The user to add as contact |
| 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. |
Sometimes, when interacting with Telegram users via private or secret chats, an action bar must be shown on top of the chat, offering convenient action buttons or notices regarding the user.