Package org.drinkless.tdlib
Class TdApi.ChatActiveStories
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.ChatActiveStories
- Enclosing class:
- TdApi
Describes active stories posted by a chat.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanTrue, if the stories are shown in the main story list and can be archived; otherwise, the stories can be hidden from the main story list only by calling removeTopChat with topChatCategoryUsers and the chatId.longIdentifier of the chat that posted the stories.static final intIdentifier uniquely determining type of the object.Identifier of the story list in which the stories are shown; may be null if the stories aren't shown in a story list.intIdentifier of the last read active story.longA parameter used to determine order of the stories in the story list; 0 if the stories doesn't need to be shown in the story list.Basic information about the stories; use getStory to get full information about the stories. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes active stories posted by a chat.ChatActiveStories(long chatId, TdApi.StoryList list, long order, boolean canBeArchived, int maxReadStoryId, TdApi.StoryInfo[] stories) Describes active stories posted by a chat. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat that posted the stories. -
list
Identifier of the story list in which the stories are shown; may be null if the stories aren't shown in a story list. -
order
public long orderA parameter used to determine order of the stories in the story list; 0 if the stories doesn't need to be shown in the story list. Stories must be sorted by the pair (order, storyPosterChatId) in descending order. -
canBeArchived
public boolean canBeArchivedTrue, if the stories are shown in the main story list and can be archived; otherwise, the stories can be hidden from the main story list only by calling removeTopChat with topChatCategoryUsers and the chatId. Stories of the current user can't be archived nor hidden using removeTopChat. -
maxReadStoryId
public int maxReadStoryIdIdentifier of the last read active story. -
stories
Basic information about the stories; use getStory to get full information about the stories. The stories are in chronological order (i.e., in order of increasing story identifiers). -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ChatActiveStories
public ChatActiveStories()Describes active stories posted by a chat. -
ChatActiveStories
public ChatActiveStories(long chatId, TdApi.StoryList list, long order, boolean canBeArchived, int maxReadStoryId, TdApi.StoryInfo[] stories) Describes active stories posted by a chat.- Parameters:
chatId- Identifier of the chat that posted the stories.list- Identifier of the story list in which the stories are shown; may be null if the stories aren't shown in a story list.order- A parameter used to determine order of the stories in the story list; 0 if the stories doesn't need to be shown in the story list. Stories must be sorted by the pair (order, storyPosterChatId) in descending order.canBeArchived- True, if the stories are shown in the main story list and can be archived; otherwise, the stories can be hidden from the main story list only by calling removeTopChat with topChatCategoryUsers and the chatId. Stories of the current user can't be archived nor hidden using removeTopChat.maxReadStoryId- Identifier of the last read active story.stories- Basic information about the stories; use getStory to get full information about the stories. The stories are in chronological order (i.e., in order of increasing story identifiers).
-
-
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
-