pub struct Story {Show 24 fields
pub id: i32,
pub sender_chat_id: i64,
pub sender_id: Option<MessageSender>,
pub date: i32,
pub is_being_sent: bool,
pub is_being_edited: bool,
pub is_edited: bool,
pub is_posted_to_chat_page: bool,
pub is_visible_only_for_self: bool,
pub can_be_deleted: bool,
pub can_be_edited: bool,
pub can_be_forwarded: bool,
pub can_be_replied: bool,
pub can_toggle_is_posted_to_chat_page: bool,
pub can_get_statistics: bool,
pub can_get_interactions: bool,
pub has_expired_viewers: bool,
pub repost_info: Option<StoryRepostInfo>,
pub interaction_info: Option<StoryInteractionInfo>,
pub chosen_reaction_type: Option<ReactionType>,
pub privacy_settings: StoryPrivacySettings,
pub content: StoryContent,
pub areas: Vec<StoryArea>,
pub caption: FormattedText,
}
Expand description
Represents a story
Fields§
§id: i32
Unique story identifier among stories of the given sender
sender_chat_id: i64
Identifier of the chat that posted the story
sender_id: Option<MessageSender>
Identifier of the sender of the story; may be null if the story is posted on behalf of the sender_chat_id
date: i32
Point in time (Unix timestamp) when the story was published
is_being_sent: bool
True, if the story is being sent by the current user
is_being_edited: bool
True, if the story is being edited by the current user
is_edited: bool
True, if the story was edited
is_posted_to_chat_page: bool
True, if the story is saved in the sender’s profile and will be available there after expiration
is_visible_only_for_self: bool
True, if the story is visible only for the current user
can_be_deleted: bool
True, if the story can be deleted
can_be_edited: bool
True, if the story can be edited
can_be_forwarded: bool
True, if the story can be forwarded as a message. Otherwise, screenshots and saving of the story content must be also forbidden
can_be_replied: bool
True, if the story can be replied in the chat with the story sender
can_toggle_is_posted_to_chat_page: bool
True, if the story’s is_posted_to_chat_page value can be changed
can_get_statistics: bool
True, if the story statistics are available through getStoryStatistics
can_get_interactions: bool
True, if interactions with the story can be received through getStoryInteractions
has_expired_viewers: bool
True, if users viewed the story can’t be received, because the story has expired more than getOption(“story_viewers_expiration_delay”) seconds ago
repost_info: Option<StoryRepostInfo>
Information about the original story; may be null if the story wasn’t reposted
interaction_info: Option<StoryInteractionInfo>
Information about interactions with the story; may be null if the story isn’t owned or there were no interactions
chosen_reaction_type: Option<ReactionType>
Type of the chosen reaction; may be null if none
privacy_settings: StoryPrivacySettings
Privacy rules affecting story visibility; may be approximate for non-owned stories
content: StoryContent
Content of the story
areas: Vec<StoryArea>
Clickable areas to be shown on the story content
caption: FormattedText
Caption of the story