Enclosing class:
TdApi
Represents a story.
Field Summary
Fields
Clickable areas to be shown on the story content.
boolean
True, if the story can be forwarded as a message.
boolean
True, if the story can be replied in the chat with the story sender.
boolean
True, if users viewed the story can be received through getStoryViewers.
Type of the chosen reaction; may be null if none.
static final int
Identifier uniquely determining type of the object.
int
Point in time (Unix timestamp) when the story was published.
boolean
True, if users viewed the story can't be received, because the story has expired more than getOption("story_viewers_expiration_delay") seconds ago.
int
Unique story identifier among stories of the given sender.
Information about interactions with the story; may be null if the story isn't owned or there were no interactions.
boolean
True, if the story is being edited by the current user.
boolean
True, if the story is being sent by the current user.
boolean
True, if the story was edited.
boolean
True, if the story is saved in the sender's profile and will be available there after expiration.
boolean
True, if the story is visible only for the current user.
Privacy rules affecting story visibility; may be approximate for non-owned stories.
long
Identifier of the chat that posted the story.
Constructor Summary
Constructors
Story (int id,
long senderChatId,
int date,
boolean isBeingSent,
boolean isBeingEdited,
boolean isEdited,
boolean isPinned,
boolean isVisibleOnlyForSelf,
boolean canBeForwarded,
boolean canBeReplied,
boolean canGetViewers,
boolean hasExpiredViewers,
TdApi.StoryInteractionInfo interactionInfo,
TdApi.ReactionType chosenReactionType,
TdApi.StoryPrivacySettings privacySettings,
TdApi.StoryContent content,
TdApi.StoryArea [] areas,
TdApi.FormattedText caption)
Method Summary
All Methods Instance Methods Concrete Methods
boolean
int
Returns an identifier uniquely determining type of the object.
int
void
Serialize the TDLib class
Field Details
id
public int id
Unique story identifier among stories of the given sender.
senderChatId
public long senderChatId
Identifier of the chat that posted the story.
date
public int date
Point in time (Unix timestamp) when the story was published.
isBeingSent
public boolean isBeingSent
True, if the story is being sent by the current user.
isBeingEdited
public boolean isBeingEdited
True, if the story is being edited by the current user.
isEdited
public boolean isEdited
True, if the story was edited.
isPinned
public boolean isPinned
True, if the story is saved in the sender's profile and will be available there after expiration.
isVisibleOnlyForSelf
public boolean isVisibleOnlyForSelf
True, if the story is visible only for the current user.
canBeForwarded
public boolean canBeForwarded
True, if the story can be forwarded as a message. Otherwise, screenshots and saving of the story content must be also forbidden.
canBeReplied
public boolean canBeReplied
True, if the story can be replied in the chat with the story sender.
canGetViewers
public boolean canGetViewers
True, if users viewed the story can be received through getStoryViewers.
hasExpiredViewers
public boolean hasExpiredViewers
True, if users viewed the story can't be received, because the story has expired more than getOption("story_viewers_expiration_delay") seconds ago.
interactionInfo
Information about interactions with the story; may be null if the story isn't owned or there were no interactions.
chosenReactionType
Type of the chosen reaction; may be null if none.
privacySettings
Privacy rules affecting story visibility; may be approximate for non-owned stories.
content
Content of the story.
areas
Clickable areas to be shown on the story content.
caption
Caption of the story.
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.
See Also:
Constructor Details
Story
public Story ()
Represents a story.
Story
public Story (int id,
long senderChatId,
int date,
boolean isBeingSent,
boolean isBeingEdited,
boolean isEdited,
boolean isPinned,
boolean isVisibleOnlyForSelf,
boolean canBeForwarded,
boolean canBeReplied,
boolean canGetViewers,
boolean hasExpiredViewers,
TdApi.StoryInteractionInfo interactionInfo,
TdApi.ReactionType chosenReactionType,
TdApi.StoryPrivacySettings privacySettings,
TdApi.StoryContent content,
TdApi.StoryArea [] areas,
TdApi.FormattedText caption)
Represents a story.
Parameters:
id
- Unique story identifier among stories of the given sender.
senderChatId
- Identifier of the chat that posted the story.
date
- Point in time (Unix timestamp) when the story was published.
isBeingSent
- True, if the story is being sent by the current user.
isBeingEdited
- True, if the story is being edited by the current user.
isEdited
- True, if the story was edited.
isPinned
- True, if the story is saved in the sender's profile and will be available there after expiration.
isVisibleOnlyForSelf
- True, if the story is visible only for the current user.
canBeForwarded
- True, if the story can be forwarded as a message. Otherwise, screenshots and saving of the story content must be also forbidden.
canBeReplied
- True, if the story can be replied in the chat with the story sender.
canGetViewers
- True, if users viewed the story can be received through getStoryViewers.
hasExpiredViewers
- True, if users viewed the story can't be received, because the story has expired more than getOption("story_viewers_expiration_delay") seconds ago.
interactionInfo
- Information about interactions with the story; may be null if the story isn't owned or there were no interactions.
chosenReactionType
- Type of the chosen reaction; may be null if none.
privacySettings
- Privacy rules affecting story visibility; may be approximate for non-owned stories.
content
- Content of the story.
areas
- Clickable areas to be shown on the story content.
caption
- Caption of the story.
Method Details
getConstructor
public int getConstructor ()
Returns an identifier uniquely determining type of the object.
Specified by:
getConstructor
in class TdApi.Object
Returns:
this.CONSTRUCTOR
serialize
Serialize the TDLib class
Specified by:
serialize
in class TdApi.Object
Parameters:
output
- output data stream
Throws:
IOException
- the serialization failed