set_contact_note()

Client.set_contact_note()

Changes a note of a contact user.

Usable by Users Bots
Parameters:
  • user_id (int | str) – Unique identifier (int) or username (str) of the target user.

  • note (str | FormattedText, optional) – Note to set for the user.

Returns:

bool – On success, True is returned.

Example

await app.set_contact_note(12345678, types.FormattedText(text="My best friend!"))