Class TdApi.SetUserNote

Enclosing class:
TdApi

public static class TdApi.SetUserNote extends TdApi.Function<TdApi.Ok>
Changes a note of a contact user.

Returns Ok

  • Field Details

    • userId

      public long userId
      User identifier.
    • note

      public TdApi.FormattedText note
      Note to set for the user; 0-getOption("user_note_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • SetUserNote

      public SetUserNote()
      Default constructor for a function, which changes a note of a contact user.

      Returns Ok

    • SetUserNote

      public SetUserNote(long userId, TdApi.FormattedText note)
      Creates a function, which changes a note of a contact user.

      Returns Ok

      Parameters:
      userId - User identifier.
      note - Note to set for the user; 0-getOption("user_note_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR