Skip to content

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

Class: ChatPhoto ​

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

This object represents a chat photo.

Constructors ​

Constructor ​

new ChatPhoto(payload): ChatPhoto

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

Parameters ​

ParameterType
payloadTelegramChatPhoto

Returns ​

ChatPhoto

Properties ​

PropertyTypeDefined in
payloadTelegramChatPhotocontexts/index.d.ts:3905

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string


bigFileId ​

Get Signature ​

get bigFileId(): string

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

File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.

Returns ​

string


bigFileUniqueId ​

Get Signature ​

get bigFileUniqueId(): string

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

Unique file identifier of big (640x640) chat photo, 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


smallFileId ​

Get Signature ​

get smallFileId(): string

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

File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.

Returns ​

string


smallFileUniqueId ​

Get Signature ​

get smallFileUniqueId(): string

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

Unique file identifier of small (160x160) chat photo, 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