Class TdApi.SetChatAccentColor
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.SetChatAccentColor
- Enclosing class:
- TdApi
Changes accent color and background custom emoji of a channel chat. Requires canChangeInfo administrator right.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionint
Identifier of the accent color to use.long
Identifier of a custom emoji to be shown on the reply header and link preview background; 0 if none.long
Chat identifier.static final int
Identifier uniquely determining type of the object. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which changes accent color and background custom emoji of a channel chat.SetChatAccentColor
(long chatId, int accentColorId, long backgroundCustomEmojiId) Creates a function, which changes accent color and background custom emoji of a channel chat. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdChat identifier. -
accentColorId
public int accentColorIdIdentifier of the accent color to use. The chat must have at least accentColor.minChannelChatBoostLevel boost level to pass the corresponding color. -
backgroundCustomEmojiId
public long backgroundCustomEmojiIdIdentifier 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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SetChatAccentColor
public SetChatAccentColor()Default constructor for a function, which 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) Creates a function, which 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.
-
-
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 classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-