GramIO API Reference / @gramio/contexts/dist / VideoNoteAttachment
Class: VideoNoteAttachment
Defined in: contexts/index.d.ts:1132
This object represents a video message.
Extends
Constructors
Constructor
new VideoNoteAttachment(
payload):VideoNoteAttachment
Defined in: contexts/index.d.ts:425
Parameters
| Parameter | Type |
|---|---|
payload | TelegramVideoNote |
Returns
VideoNoteAttachment
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:1133 |
payload | protected | TelegramVideoNote | - | - | 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:1140
Duration of the video in seconds as defined by 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:1144
File size
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
length
Get Signature
get length():
number
Defined in: contexts/index.d.ts:1138
Video width and height (diameter of the video message) as defined by sender
Returns
number
thumbnail
Get Signature
get thumbnail():
PhotoSize
Defined in: contexts/index.d.ts:1142
Video thumbnail