InputSticker class abstract
This object describes a sticker to be added to a sticker set.
- Annotations
-
- @Freezed(fromJson: false, toJson: true)
Constructors
-
InputSticker.new({@JsonKey(name: 'sticker') @InputFileConverter() required InputFile sticker, @JsonKey(name: 'format') required InputStickerFormat format, @JsonKey(name: 'emoji_list') required List<
String> emojiList, @JsonKey(name: 'mask_position') MaskPosition? maskPosition, @JsonKey(name: 'keywords') List<String> ? keywords}) -
Creates the Input Sticker object.
constfactory
- InputSticker.fromJson(String json)
-
Placeholder. Do not use.
factory
Properties
-
copyWith
→ $InputStickerCopyWith<
InputSticker> -
Create a copy of InputSticker
with the given fields replaced by the non-null parameter values.
no setterinherited
-
emojiList
→ List<
String> -
List of 1-20 emoji associated with the sticker
no setterinherited
- format → InputStickerFormat
-
Format of the added sticker, must be one of "static" for a .WEBP or .PNG
image, "animated" for a .TGS animation, "video" for a WEBM video
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keywords
→ List<
String> ? -
Optional. List of 0-20 search keywords for the sticker with total length
of up to 64 characters. For "regular" and "custom_emoji" stickers only.
no setterinherited
- maskPosition → MaskPosition?
-
Optional. Position where the mask should be placed on faces. For "mask"
stickers only.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sticker → InputFile
-
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, or upload a new one using
multipart/form-data. Animated and video stickers can't be uploaded via
HTTP URL. More information on Sending Files »
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this InputSticker to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited