GramIO API Reference / @gramio/contexts/dist / PhotoSize
Class: PhotoSize
Defined in: contexts/index.d.ts:296
This object represents one size of a photo or a file / sticker thumbnail
Constructors
Constructor
new PhotoSize(
payload):PhotoSize
Defined in: contexts/index.d.ts:298
Parameters
| Parameter | Type |
|---|---|
payload | TelegramPhotoSize |
Returns
PhotoSize
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramPhotoSize | contexts/index.d.ts:297 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:300
Returns
string
fileId
Get Signature
get fileId():
string
Defined in: contexts/index.d.ts:304
Identifier for this file, which can be used to download or reuse the file
Returns
string
fileSize
Get Signature
get fileSize():
number
Defined in: contexts/index.d.ts:315
File size
Returns
number
fileUniqueId
Get Signature
get fileUniqueId():
string
Defined in: contexts/index.d.ts:309
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.
Returns
string
height
Get Signature
get height():
number
Defined in: contexts/index.d.ts:313
Photo height
Returns
number
width
Get Signature
get width():
number
Defined in: contexts/index.d.ts:311
Photo width
Returns
number