EphemeralMessageParameters class abstract
Describes the parameters of an ephemeral message to send.
- Available extensions
- Annotations
-
- @freezed
Constructors
- EphemeralMessageParameters({@JsonKey.new(name: 'receiver_user_id') required int receiverUserId, @JsonKey.new(name: 'callback_query_id') String? callbackQueryId, @JsonKey.new(name: 'replace_callback_query_message') bool? replaceCallbackQueryMessage})
-
Constructs an EphemeralMessageParameters.
constfactory
-
EphemeralMessageParameters.fromJson(Map<
String, dynamic> json) -
Creates an EphemeralMessageParameters object from JSON.
factory
Properties
- callbackQueryId → String?
-
Optional. Identifier of the callback query which triggered the message,
if any
no setterinherited
-
copyWith
→ $EphemeralMessageParametersCopyWith<
EphemeralMessageParameters> -
Create a copy of EphemeralMessageParameters
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- receiverUserId → int
-
Identifier of the user who will receive the message. It is not
guaranteed that the user will receive the message, especially if they
are offline.
no setterinherited
- replaceCallbackQueryMessage → bool?
-
Optional. Pass True if the ephemeral message must be shown in place of
the original message. Must be False for callback queries from ephemeral
messages, which must be edited using regular editEphemeralMessage…
methods.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_EphemeralMessageParameters value)) → TResult -
Available on EphemeralMessageParameters, provided by the EphemeralMessageParametersPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_EphemeralMessageParameters value)?) → TResult? -
Available on EphemeralMessageParameters, provided by the EphemeralMessageParametersPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_EphemeralMessageParameters value)?, {required TResult orElse()}) → TResult -
Available on EphemeralMessageParameters, provided by the EphemeralMessageParametersPatterns extension
A variant ofmapthat fallback to returningorElse. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this EphemeralMessageParameters to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited