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
| Parameter | Type |
|---|---|
payload | PhotoSize[] |
Returns
PhotoAttachment
Overrides
Properties
| Property | Type | Overrides | Defined in |
|---|---|---|---|
attachmentType | AttachmentType | Attachment.attachmentType | contexts/index.d.ts:463 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:314
Returns
string
Inherited from
bigSize
Get Signature
get bigSize():
PhotoSize
Defined in: contexts/index.d.ts:468
Biggest size of the photo
Returns
mediumSize
Get Signature
get mediumSize():
PhotoSize
Defined in: contexts/index.d.ts:470
Medium size of the photo
Returns
sizes
Get Signature
get sizes():
PhotoSize[]
Defined in: contexts/index.d.ts:466
Photo sizes
Returns
smallSize
Get Signature
get smallSize():
PhotoSize
Defined in: contexts/index.d.ts:472
Smallest size of the photo