GramIO API Reference / @gramio/contexts/dist / LivePhotoAttachment
Class: LivePhotoAttachment
Defined in: contexts/index.d.ts:521
This object represents a live photo.
Extends
Constructors
Constructor
new LivePhotoAttachment(
payload):LivePhotoAttachment
Defined in: contexts/index.d.ts:425
Parameters
| Parameter | Type |
|---|---|
payload | TelegramLivePhoto |
Returns
LivePhotoAttachment
Inherited from
Properties
| Property | Modifier | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|---|
attachmentType | public | AttachmentType | Returns attachment's type (e.g. 'audio', 'photo') | FileAttachment.attachmentType | - | contexts/index.d.ts:522 |
payload | protected | TelegramLivePhoto | - | - | FileAttachment.payload | contexts/index.d.ts:422 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:412
Returns
string
Inherited from
duration
Get Signature
get duration():
number
Defined in: contexts/index.d.ts:530
Duration of the video in seconds as defined by the sender
Returns
number
fileId
Get Signature
get fileId():
string
Defined in: contexts/index.d.ts:427
Identifier for this file, which can be used to download or reuse the file
Returns
string
Inherited from
fileSize
Get Signature
get fileSize():
number
Defined in: contexts/index.d.ts:534
File size in bytes
Returns
number
fileUniqueId
Get Signature
get fileUniqueId():
string
Defined in: contexts/index.d.ts:432
Unique identifier for this file, 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
Inherited from
height
Get Signature
get height():
number
Defined in: contexts/index.d.ts:528
Video height as defined by the sender
Returns
number
mimeType
Get Signature
get mimeType():
string
Defined in: contexts/index.d.ts:532
MIME type of the file as defined by the sender
Returns
string
photo
Get Signature
get photo():
PhotoSize[]
Defined in: contexts/index.d.ts:524
Available sizes of the corresponding static photo
Returns
width
Get Signature
get width():
number
Defined in: contexts/index.d.ts:526
Video width as defined by the sender
Returns
number