Sticker class

This object represents a sticker.

https://core.telegram.org/bots/api#sticker

Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

Sticker({String? fileID, String? fileUniqueID, int? width, int? height, bool? isAnimated, PhotoSize? thumb, String? emoji, String? setName, MaskPosition? maskPosition, int? fileSize})
Sticker.fromJson(Map<String, dynamic> json)
factory

Properties

emoji ↔ String?
Optional. Emoji associated with the sticker.
getter/setter pair
fileID ↔ String?
Identifier for this file, which can be used to download or reuse the file.
getter/setter pair
fileSize ↔ int?
Optional. File size.
getter/setter pair
fileUniqueID ↔ String?
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
height ↔ int?
Sticker height.
getter/setter pair
isAnimated ↔ bool?
True, if the sticker is animated.
getter/setter pair
maskPosition ↔ MaskPosition?
Optional. For mask stickers, the position where the mask should be placed.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
setName ↔ String?
Optional. Name of the sticker set to which the sticker belongs.
getter/setter pair
thumb ↔ PhotoSize?
Optional. Sticker thumbnail in the .WEBP or .JPG format.
getter/setter pair
width ↔ int?
Sticker width.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited