EphemeralMessageContent class
Describes an ephemeral content of a regular message, which must be shown instead of the regular content
- Inheritance
- Available extensions
- Annotations
-
- @immutable
Constructors
- EphemeralMessageContent({required bool canBeSaved, required bool hasTimestampedMedia, required MessageContent content, ReplyMarkup? replyMarkup})
-
const
Properties
- canBeSaved → bool
-
canBeSaved True, if content of the message can be saved locally
final
- content → MessageContent
-
content Content of the message
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasTimestampedMedia → bool
-
hasTimestampedMedia True, if media timestamp entities refers to a media
in this message as opposed to a media in the replied message
final
- replyMarkup → ReplyMarkup?
-
replyMarkup Reply markup for the message; may be null if none
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{bool? canBeSaved, bool? hasTimestampedMedia, MessageContent? content, ReplyMarkup? replyMarkup}) → EphemeralMessageContent -
Available on EphemeralMessageContent, provided by the EphemeralMessageContentExtensions extension
-
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Map< String, dynamic> ? json) → EphemeralMessageContent?
Constants
- constructor → const String