Skip to content

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

Class: PhotoAttachment

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

This object represents a photo file with it's sizes

Extends

Constructors

Constructor

new PhotoAttachment(payload): PhotoAttachment

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

Parameters

ParameterType
payloadPhotoSize[]

Returns

PhotoAttachment

Overrides

Attachment.constructor

Properties

PropertyTypeOverridesDefined in
attachmentTypeAttachmentTypeAttachment.attachmentTypecontexts/index.d.ts:463

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string

Inherited from

Attachment.[toStringTag]


bigSize

Get Signature

get bigSize(): PhotoSize

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

Biggest size of the photo

Returns

PhotoSize


mediumSize

Get Signature

get mediumSize(): PhotoSize

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

Medium size of the photo

Returns

PhotoSize


sizes

Get Signature

get sizes(): PhotoSize[]

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

Photo sizes

Returns

PhotoSize[]


smallSize

Get Signature

get smallSize(): PhotoSize

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

Smallest size of the photo

Returns

PhotoSize