GramIO API Reference / @gramio/contexts/dist / PhotoSize
Class: PhotoSize
Defined in: contexts/index.d.ts:37
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:39
Parameters
| Parameter | Type |
|---|---|
payload | TelegramPhotoSize |
Returns
PhotoSize
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramPhotoSize | contexts/index.d.ts:38 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:41
Returns
string
fileId
Get Signature
get fileId():
string
Defined in: contexts/index.d.ts:45
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:56
File size
Returns
number
fileUniqueId
Get Signature
get fileUniqueId():
string
Defined in: contexts/index.d.ts:50
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:54
Photo height
Returns
number
width
Get Signature
get width():
number
Defined in: contexts/index.d.ts:52
Photo width
Returns
number