Module tdlight.api

Class TdApi.SetChatAccentColor

Enclosing class:
TdApi

public static final class TdApi.SetChatAccentColor extends TdApi.Function<TdApi.Ok>
Changes accent color and background custom emoji of a channel chat. Requires canChangeInfo administrator right.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • accentColorId

      public int accentColorId
      Identifier of the accent color to use. The chat must have at least accentColor.minChannelChatBoostLevel boost level to pass the corresponding color.
    • backgroundCustomEmojiId

      public long backgroundCustomEmojiId
      Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none. Use chatBoostLevelFeatures.canSetBackgroundCustomEmoji to check whether a custom emoji can be set.
    • CONSTRUCTOR

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

    • SetChatAccentColor

      public SetChatAccentColor()
      Changes accent color and background custom emoji of a channel chat. Requires canChangeInfo administrator right.

      Returns Ok

    • SetChatAccentColor

      public SetChatAccentColor(long chatId, int accentColorId, long backgroundCustomEmojiId)
      Changes accent color and background custom emoji of a channel chat. Requires canChangeInfo administrator right.

      Returns Ok

      Parameters:
      chatId - Chat identifier.
      accentColorId - Identifier of the accent color to use. The chat must have at least accentColor.minChannelChatBoostLevel boost level to pass the corresponding color.
      backgroundCustomEmojiId - Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none. Use chatBoostLevelFeatures.canSetBackgroundCustomEmoji to check whether a custom emoji can be set.

      Returns Ok

    • SetChatAccentColor

      public SetChatAccentColor(DataInput input) throws IOException
      Changes accent color and background custom emoji of a channel chat. Requires canChangeInfo administrator right.

      Returns Ok

      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • 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
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object