Skip to main content

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

NameTypeRequiredDescription
IDInputUserClassyesThe contact.
NoteTextWithEntitiesyesThe note.

Returns

bool

Possible errors

CodeTypeDescription
400CONTACT_ID_INVALIDThe provided contact ID is invalid.

References