setContactNote

Set a contact note.

Parameters

userId: ID

The identifier of the user to update the note for.

note?: string

A note to attach to the contact.

noteEntities?: MessageEntity[]

The note’s entities.

noteParseMode?: ParseMode

The parse mode to use for the note

Result

void

Syntax

// Required parameters only.
await client.setContactNote(userId);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.setContactNote(userId, { note, noteEntities, noteParseMode });