public static class TdApi.EditForumTopic extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Identifier of the chat.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
editIconCustomEmoji
Pass true to edit the icon of the topic.
|
long |
iconCustomEmojiId
Identifier of the new custom emoji for topic icon; pass 0 to remove the custom emoji.
|
long |
messageThreadId
Message thread identifier of the forum topic.
|
java.lang.String |
name
New name of the topic; 0-128 characters.
|
| Constructor and Description |
|---|
EditForumTopic()
Default constructor for a function, which edits title and icon of a topic in a forum supergroup chat; requires canManageTopics right in the supergroup unless the user is creator of the topic.
|
EditForumTopic(long chatId,
long messageThreadId,
java.lang.String name,
boolean editIconCustomEmoji,
long iconCustomEmojiId)
Creates a function, which edits title and icon of a topic in a forum supergroup chat; requires canManageTopics right in the supergroup unless the user is creator of the topic.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long messageThreadId
public java.lang.String name
public boolean editIconCustomEmoji
public long iconCustomEmojiId
public static final int CONSTRUCTOR
public EditForumTopic()
Returns Ok
public EditForumTopic(long chatId,
long messageThreadId,
java.lang.String name,
boolean editIconCustomEmoji,
long iconCustomEmojiId)
Returns Ok
chatId - Identifier of the chat.messageThreadId - Message thread identifier of the forum topic.name - New name of the topic; 0-128 characters. If empty, the previous topic name is kept.editIconCustomEmoji - Pass true to edit the icon of the topic. Icon of the General topic can't be edited.iconCustomEmojiId - Identifier of the new custom emoji for topic icon; pass 0 to remove the custom emoji. Ignored if editIconCustomEmoji is false. Telegram Premium users can use any custom emoji, other users can use only a custom emoji returned by getForumTopicDefaultIcons.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object