public static class TdApi.SetChatPinnedStories extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Identifier of the chat that posted the stories.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int[] |
storyIds
New list of pinned stories.
|
| Constructor and Description |
|---|
SetChatPinnedStories()
Default constructor for a function, which changes the list of pinned stories on a chat page; requires canEditStories right in the chat.
|
SetChatPinnedStories(long chatId,
int[] storyIds)
Creates a function, which changes the list of pinned stories on a chat page; requires canEditStories right in the chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public int[] storyIds
public static final int CONSTRUCTOR
public SetChatPinnedStories()
Returns Ok
public SetChatPinnedStories(long chatId,
int[] storyIds)
Returns Ok
chatId - Identifier of the chat that posted the stories.storyIds - New list of pinned stories. All stories must be posted to the chat page first. There can be up to getOption("pinned_story_count_max") pinned stories on a chat page.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object