public static class TdApi.SetChatProfileAccentColor extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
profileAccentColorId
Identifier of the accent color to use for profile; pass -1 if none.
|
long |
profileBackgroundCustomEmojiId
Identifier of a custom emoji to be shown on the chat's profile photo background; 0 if none.
|
| Constructor and Description |
|---|
SetChatProfileAccentColor()
Default constructor for a function, which changes accent color and background custom emoji for profile of a supergroup or channel chat.
|
SetChatProfileAccentColor(long chatId,
int profileAccentColorId,
long profileBackgroundCustomEmojiId)
Creates a function, which changes accent color and background custom emoji for profile of a supergroup or channel chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public int profileAccentColorId
public long profileBackgroundCustomEmojiId
public static final int CONSTRUCTOR
public SetChatProfileAccentColor()
Returns Ok
public SetChatProfileAccentColor(long chatId,
int profileAccentColorId,
long profileBackgroundCustomEmojiId)
Returns Ok
chatId - Chat identifier.profileAccentColorId - Identifier of the accent color to use for profile; pass -1 if none. The chat must have at least profileAccentColor.minSupergroupChatBoostLevel for supergroups or profileAccentColor.minChannelChatBoostLevel for channels boost level to pass the corresponding color.profileBackgroundCustomEmojiId - Identifier of a custom emoji to be shown on the chat's profile photo background; 0 if none. Use chatBoostLevelFeatures.canSetProfileBackgroundCustomEmoji to check whether a custom emoji can be set.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object