public static class TdApi.ToggleForumTopicIsClosed 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 |
isClosed
Pass true to close the topic; pass false to reopen it.
|
long |
messageThreadId
Message thread identifier of the forum topic.
|
| Constructor and Description |
|---|
ToggleForumTopicIsClosed()
Default constructor for a function, which toggles whether a topic is closed in a forum supergroup chat; requires canManageTopics right in the supergroup unless the user is creator of the topic.
|
ToggleForumTopicIsClosed(long chatId,
long messageThreadId,
boolean isClosed)
Creates a function, which toggles whether a topic is closed 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 boolean isClosed
public static final int CONSTRUCTOR
public ToggleForumTopicIsClosed()
Returns Ok
public ToggleForumTopicIsClosed(long chatId,
long messageThreadId,
boolean isClosed)
Returns Ok
chatId - Identifier of the chat.messageThreadId - Message thread identifier of the forum topic.isClosed - Pass true to close the topic; pass false to reopen it.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object