Class TdApi.SetChatPinnedStories
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.SetChatPinnedStories
- Enclosing class:
- TdApi
Changes the list of pinned stories on a chat page; requires canEditStories right in the chat.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the chat that posted the stories.static final int
Identifier uniquely determining type of the object.int[]
New list of pinned stories. -
Constructor Summary
ConstructorDescriptionDefault 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. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat that posted the stories. -
storyIds
public int[] storyIdsNew 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SetChatPinnedStories
public SetChatPinnedStories()Default constructor for a function, which changes the list of pinned stories on a chat page; requires canEditStories right in the chat.Returns
Ok
-
SetChatPinnedStories
public 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.Returns
Ok
- Parameters:
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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-