Skip to content

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

Class: PhotoAttachment

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

This object represents a photo file with it's sizes

Extends

Constructors

Constructor

new PhotoAttachment(payload): PhotoAttachment

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

Parameters

ParameterType
payloadPhotoSize[]

Returns

PhotoAttachment

Overrides

Attachment.constructor

Properties

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

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string

Inherited from

Attachment.[toStringTag]


bigSize

Get Signature

get bigSize(): PhotoSize

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

Biggest size of the photo

Returns

PhotoSize


mediumSize

Get Signature

get mediumSize(): PhotoSize

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

Medium size of the photo

Returns

PhotoSize


sizes

Get Signature

get sizes(): PhotoSize[]

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

Photo sizes

Returns

PhotoSize[]


smallSize

Get Signature

get smallSize(): PhotoSize

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

Smallest size of the photo

Returns

PhotoSize