Package org.drinkless.tdlib
Class TdApi.SetChatPinnedStories
- Enclosing class:
- TdApi
Changes the list of pinned stories on a chat page; requires canEditStories administrator right in the chat.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the chat that posted the stories.static final intIdentifier uniquely determining type of the object.int[]New list of pinned stories. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which changes the list of pinned stories on a chat page; requires canEditStories administrator 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 administrator right in the chat. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.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 administrator 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 administrator 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-