EphemeralMessageParameters class abstract

Describes the parameters of an ephemeral message to send.

Available extensions
Annotations
  • @freezed

Constructors

EphemeralMessageParameters({@JsonKey.new(name: 'receiver_user_id') int? receiverUserId, @JsonKey.new(name: 'callback_query_id') String? callbackQueryId, @JsonKey.new(name: 'replace_callback_query_message') bool? replaceCallbackQueryMessage})
Constructs an EphemeralMessageParameters.
const
factory
EphemeralMessageParameters.fromJson(Map<String, dynamic> json)
Creates an EphemeralMessageParameters object from JSON.
factory

Properties

callbackQueryId → String?
Identifier of the callback query that triggered the message. When receiverUserId is omitted, Telegram uses the callback to determine the chat and recipient. Channel direct messages do not support this form. The bot still needs to answer the callback query.
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. Required unless callbackQueryId is used to send a reply to a callback query. Delivery is not guaranteed, especially if the user is 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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_EphemeralMessageParameters value)?) → TResult?

Available on EphemeralMessageParameters, provided by the EphemeralMessageParametersPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_EphemeralMessageParameters value)?, {required TResult orElse()}) → TResult

Available on EphemeralMessageParameters, provided by the EphemeralMessageParametersPatterns extension

A variant of map that fallback to returning orElse.
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