Class PhotoSize
Represents one size of a photo or a file/sticker thumbnail
Inheritance
System.Object
PhotoSize
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 PhotoSize
Properties
| Improve this Doc View SourceFileId
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
Photo height
Declaration
[JsonProperty(PropertyName = "height")]
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Width
Photo width
Declaration
[JsonProperty(PropertyName = "width")]
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |