AvailableReactions class final
Represents a list of reactions that can be added to a message
Constructors
-
AvailableReactions({required List<
AvailableReaction> topReactions, required List<AvailableReaction> recentReactions, required List<AvailableReaction> popularReactions, required bool allowCustomEmoji, required bool areTags, dynamic extra, int? clientId}) -
Represents a list of reactions that can be added to a message
const
-
AvailableReactions.fromJson(Map<
String, dynamic> json) -
Parses a AvailableReactions from TDLib JSON.
factory
Properties
- allowCustomEmoji → bool
-
True, if any custom emoji reaction can be added by Telegram Premium subscribers
final
- areTags → bool
-
True, if the reactions will be tags and the message can be found by them
final
- clientId → int?
-
Identifier of the TDLib client that sent this object.
final
- extra → dynamic
-
"@extra" of the request this object answers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
popularReactions
→ List<
AvailableReaction> -
List of popular reactions
final
-
recentReactions
→ List<
AvailableReaction> -
List of recently used reactions
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
topReactions
→ List<
AvailableReaction> -
List of reactions to be shown at the top
final
-
The reason why the current user can't add reactions to the message, despite some other users can; may be null if none
final
Methods
-
copyWith(
{List< AvailableReaction> ? topReactions, List<AvailableReaction> ? recentReactions, List<AvailableReaction> ? popularReactions, bool? allowCustomEmoji, bool? areTags, dynamic extra, int? clientId}) → AvailableReactions -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto 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.