contacts.updateContactNote
Update the private note associated to a contact; see here » for more info.
func (c *Client) ContactsUpdateContactNote(ctx context.Context, request *ContactsUpdateContactNoteRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.ContactsUpdateContactNote(ctx, &tg.ContactsUpdateContactNoteRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ID | InputUserClass | yes | The contact. |
Note | TextWithEntities | yes | The note. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CONTACT_ID_INVALID | The provided contact ID is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
contacts.updateContactNote#139f63fb