SendStory class final
Sends a new story to a chat; requires can_post_stories right for supergroup and channel chats. Returns a temporary story
Returns Story.
- Inheritance
-
- Object
- TdFunction<
Story> - SendStory
Constructors
- SendStory({required int chatId, required InputStoryContent content, InputStoryAreas? areas, FormattedText? caption, required StoryPrivacySettings privacySettings, required int activePeriod, required StoryFullId fromStoryFullId, required bool isPinned, required bool protectContent})
-
Sends a new story to a chat; requires can_post_stories right for supergroup and channel chats. Returns a temporary story
const
Properties
- activePeriod → 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
final
- areas → InputStoryAreas?
-
Clickable rectangle areas to be shown on the story media; pass null if none
final
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - caption → FormattedText?
-
Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters
final
- chatId → int
-
Identifier of the chat that will post the story
final
- content → InputStoryContent
-
Content of the story
final
- fromStoryFullId → StoryFullId
-
Full identifier of the original story, which content was used to create the story
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPinned → bool
-
Pass true to keep the story accessible after expiration
final
- privacySettings → StoryPrivacySettings
-
The privacy settings for the story; ignored for stories sent to supergroup and channel chats
final
- protectContent → bool
-
Pass true if the content of the story must be protected from forwarding and screenshotting
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? chatId, InputStoryContent? content, InputStoryAreas? areas()?, FormattedText? caption()?, StoryPrivacySettings? privacySettings, int? activePeriod, StoryFullId? fromStoryFullId, bool? isPinned, bool? protectContent}) → SendStory -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib function name, e.g.
getMe.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Converts this request to TDLib JSON, tagged with
extraif given.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.