Skip to content

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

Class: PhotoAttachment

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

This object represents a photo file with it's sizes

Extends

Constructors

Constructor

new PhotoAttachment(payload): PhotoAttachment

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

Parameters

ParameterType
payloadPhotoSize[]

Returns

PhotoAttachment

Overrides

Attachment.constructor

Properties

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

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string

Inherited from

Attachment.[toStringTag]


bigSize

Get Signature

get bigSize(): PhotoSize

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

Biggest size of the photo

Returns

PhotoSize


mediumSize

Get Signature

get mediumSize(): PhotoSize

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

Medium size of the photo

Returns

PhotoSize


sizes

Get Signature

get sizes(): PhotoSize[]

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

Photo sizes

Returns

PhotoSize[]


smallSize

Get Signature

get smallSize(): PhotoSize

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

Smallest size of the photo

Returns

PhotoSize