Package org.drinkless.tdlib
Class TdApi.SetChatAccentColor
- Enclosing class:
- TdApi
Changes accent color and background custom emoji of a channel chat. Requires canChangeInfo administrator right.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionintIdentifier of the accent color to use.longIdentifier of a custom emoji to be shown on the reply header and link preview background; 0 if none.longChat identifier.static final intIdentifier uniquely determining type of the object. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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 TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-