Story class

Inheritance

Constructors

Story({required int id, required int senderChatId, required int date, required bool isBeingEdited, required bool isEdited, required bool isPinned, required bool isVisibleOnlyForSelf, required bool canBeForwarded, required bool canBeReplied, required bool canGetViewers, required bool hasExpiredViewers, StoryInteractionInfo? interactionInfo, required StoryPrivacySettings privacySettings, required StoryContent content, required FormattedText caption, dynamic extra, int? clientId})
Represents a story
const
Story.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

canBeForwarded bool
canBeForwarded True, if the story can be forwarded as a message. Otherwise, screenshots and saving of the story content must be also forbidden
final
canBeReplied bool
canBeReplied True, if the story can be replied in the chat with the story sender
final
canGetViewers bool
canGetViewers True, if users viewed the story can be received through getStoryViewers
final
caption FormattedText
caption Caption of the story
final
clientId int?
clientId client identifier
final
content StoryContent
content Content of the story
final
date int
date Point in time (Unix timestamp) when the story was published
final
extra → dynamic
extra callback sign
final
hasExpiredViewers bool
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
final
hashCode int
The hash code for this object.
no setterinherited
id int
id Unique story identifier among stories of the given sender
final
interactionInfo StoryInteractionInfo?
interactionInfo Information about interactions with the story; may be null if the story isn't owned or there were no interactions
final
isBeingEdited bool
isBeingEdited True, if the story is being edited by the current user
final
isEdited bool
isEdited True, if the story was edited
final
isPinned bool
isPinned True, if the story is saved in the sender's profile and will be available there after expiration
final
isVisibleOnlyForSelf bool
isVisibleOnlyForSelf True, if the story is visible only for the current user
final
privacySettings StoryPrivacySettings
privacySettings Privacy rules affecting story visibility; may be approximate for non-owned stories
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
senderChatId int
senderChatId Identifier of the chat that posted the story
final

Methods

copyWith({int? id, int? senderChatId, int? date, bool? isBeingEdited, bool? isEdited, bool? isPinned, bool? isVisibleOnlyForSelf, bool? canBeForwarded, bool? canBeReplied, bool? canGetViewers, bool? hasExpiredViewers, StoryInteractionInfo? interactionInfo, StoryPrivacySettings? privacySettings, StoryContent? content, FormattedText? caption, dynamic extra, int? clientId}) Story
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String