Skip to content

GramIO API Reference / @gramio/contexts/dist / PhotoSize

Class: PhotoSize ​

Defined in: contexts/index.d.ts:386

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:388

Parameters ​

ParameterType
payloadTelegramPhotoSize

Returns ​

PhotoSize

Properties ​

PropertyTypeDefined in
payloadTelegramPhotoSizecontexts/index.d.ts:387

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

Defined in: contexts/index.d.ts:390

MDN

Returns ​

string


fileId ​

Get Signature ​

get fileId(): string

Defined in: contexts/index.d.ts:394

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:405

File size

Returns ​

number


fileUniqueId ​

Get Signature ​

get fileUniqueId(): string

Defined in: contexts/index.d.ts:399

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:403

Photo height

Returns ​

number


width ​

Get Signature ​

get width(): number

Defined in: contexts/index.d.ts:401

Photo width

Returns ​

number