InputSticker class final

A sticker to be added to a sticker set

Inheritance

Constructors

InputSticker({required InputFile sticker, required String emojis, MaskPosition? maskPosition, required List<String> keywords})
A sticker to be added to a sticker set
const
InputSticker.fromJson(Map<String, dynamic> json)
Parses a InputSticker from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
emojis → String
String with 1-20 emoji corresponding to the sticker
final
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
keywords → List<String>
List of up to 20 keywords with total length up to 64 characters, which can be used to find the sticker
final
maskPosition → MaskPosition?
Position where the mask is placed; pass null if not specified
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sticker → InputFile
File with the sticker; must fit in a 512x512 square. For WEBP stickers the file must be in WEBP or PNG format, which will be converted to WEBP server-side. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements
final

Methods

copyWith({InputFile? sticker, String? emojis, MaskPosition? maskPosition()?, List<String>? keywords}) → InputSticker
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.