public static class TdApi.ToggleForumTopicIsPinned 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.
|
boolean |
isPinned
Pass true to pin the topic; pass false to unpin it.
|
long |
messageThreadId
Message thread identifier of the forum topic.
|
| Constructor and Description |
|---|
ToggleForumTopicIsPinned()
Default constructor for a function, which changes the pinned state of a forum topic; requires canManageTopics right in the supergroup.
|
ToggleForumTopicIsPinned(long chatId,
long messageThreadId,
boolean isPinned)
Creates a function, which changes the pinned state of a forum topic; requires canManageTopics right in the supergroup.
|
| 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 isPinned
public static final int CONSTRUCTOR
public ToggleForumTopicIsPinned()
Returns Ok
public ToggleForumTopicIsPinned(long chatId,
long messageThreadId,
boolean isPinned)
Returns Ok
chatId - Chat identifier.messageThreadId - Message thread identifier of the forum topic.isPinned - Pass true to pin the topic; pass false to unpin it.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object