Class Sticker
This object represents a sticker.
Inheritance
System.Object
Sticker
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class Sticker
Properties
| Improve this Doc View SourceEmoji
Optional. Emoji associated with the sticker
Declaration
[JsonProperty(PropertyName = "emoji")]
public string Emoji { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FileId
Unique identifier for this file
Declaration
[JsonProperty(PropertyName = "file_id", Required = Required.Always)]
public string FileId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FileSize
Optional. File size
Declaration
[JsonProperty(PropertyName = "file_size")]
public int FileSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Height
Sticker height
Declaration
[JsonProperty(PropertyName = "height", Required = Required.Always)]
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MaskPosition
Optional. For mask stickers, the position where the mask should be placed
Declaration
[JsonProperty(PropertyName = "mask_position")]
public MaskPosition MaskPosition { get; set; }
Property Value
Type | Description |
---|---|
MaskPosition |
SetName
Optional. Name of the sticker set to which the sticker belongs
Declaration
[JsonProperty(PropertyName = "set_name")]
public string SetName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Thumb
Optional. Sticker thumbnail in the .webp or .jpg format
Declaration
[JsonProperty(PropertyName = "thumb")]
public PhotoSize Thumb { get; set; }
Property Value
Type | Description |
---|---|
PhotoSize |
Width
Sticker width
Declaration
[JsonProperty(PropertyName = "width", Required = Required.Always)]
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |