InputSticker class
This object describes a sticker to be added to a sticker set.
Constructors
-
InputSticker({required HttpFile sticker, required List<
String> emojiList, MaskPosition? maskPosition, List<String> ? keywords}) - Basic constructor
Properties
-
emojiList
↔ List<
String> -
List of 1-20 emoji associated with the sticker
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keywords
↔ List<
String> ? -
List of 0-20 search keywords for the sticker with total length of up
to 64 characters.
For “regular” and “custom_emoji” stickers only.
getter/setter pair
- maskPosition ↔ MaskPosition?
-
Position where the mask should be placed on faces.
For “mask” stickers only.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sticker ↔ HttpFile
-
The added sticker.
Pass a file_id as a String to send a file that already exists on the
Telegram servers, pass an HTTP URL as a String for Telegram to get a file
from the Internet, upload a new one using multipart/form-data, or pass
“attach://<file_attach_name>” to upload a new one using
multipart/form-data under <file_attach_name> name.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map - Creates a json from the object
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → InputSticker - Creates a object from a json
-
listFromJsonArray(
List array) → List< InputSticker> - Creates a list of object from a json array