SendStory class

Sends a new story to a chat; requires can_post_stories rights for channel chats. Returns a temporary story.

Returns Story.

Inheritance
Available Extensions

Constructors

SendStory({required int chat_id, required InputStoryContent content, InputStoryAreas? areas, FormattedText? caption, required StoryPrivacySettings privacy_settings, required int active_period, required bool is_pinned, required bool protect_content, int? extra, int? clientId})
Sends a new story to a chat; requires can_post_stories rights for channel chats. Returns a temporary story

Properties

active_period int
Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise.
read / write
areas InputStoryAreas?
Clickable rectangle areas to be shown on the story media; pass null if none.
read / write
caption FormattedText?
Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters.
read / write
chat_id int
Identifier of the chat that will post the story.
read / write
clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
content InputStoryContent
Content of the story.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode int
The hash code for this object.
read-onlyinherited
is_pinned bool
Pass true to keep the story accessible after expiration.
read / write
privacy_settings StoryPrivacySettings
The privacy settings for the story.
read / write
protect_content bool
Pass true if the content of the story must be protected from forwarding and screenshotting.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Object to Map serializer
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) SendStory?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"sendStory"