MessageEffect class final

Contains information about an effect added to a message

Inheritance

Constructors

MessageEffect({required int id, Sticker? staticIcon, required String emoji, required bool isPremium, required MessageEffectType type, dynamic extra, int? clientId})
Contains information about an effect added to a message
const
MessageEffect.fromJson(Map<String, dynamic> json)
Parses a MessageEffect from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object.
final
emoji → String
Emoji corresponding to the effect that can be used if static icon isn't available
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
Unique identifier of the effect
final
isPremium → bool
True, if Telegram Premium subscription is required to use the effect
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
staticIcon → Sticker?
Static icon for the effect in WEBP format; may be null if none
final
type → MessageEffectType
Type of the effect
final

Methods

copyWith({int? id, Sticker? staticIcon()?, String? emoji, bool? isPremium, MessageEffectType? type, dynamic extra, int? clientId}) → MessageEffect
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
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.