GramIO API Reference / @gramio/contexts/dist / AnimationAttachment
Class: AnimationAttachment
Defined in: contexts/index.d.ts:349
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
Extends
Constructors
Constructor
new AnimationAttachment(
payload):AnimationAttachment
Defined in: contexts/index.d.ts:335
Parameters
| Parameter | Type |
|---|---|
payload | TelegramAnimation |
Returns
AnimationAttachment
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:350 |
payload | protected | TelegramAnimation | - | - | FileAttachment.payload | contexts/index.d.ts:332 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:322
Returns
string
Inherited from
duration
Get Signature
get duration():
number
Defined in: contexts/index.d.ts:356
Duration of the video in seconds as defined by sender
Returns
number
fileId
Get Signature
get fileId():
string
Defined in: contexts/index.d.ts:337
Identifier for this file, which can be used to download or reuse the file
Returns
string
Inherited from
fileName
Get Signature
get fileName():
string
Defined in: contexts/index.d.ts:360
Original animation filename as defined by sender
Returns
string
fileSize
Get Signature
get fileSize():
number
Defined in: contexts/index.d.ts:364
File size
Returns
number
fileUniqueId
Get Signature
get fileUniqueId():
string
Defined in: contexts/index.d.ts:342
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:354
Video height as defined by sender
Returns
number
mimeType
Get Signature
get mimeType():
string
Defined in: contexts/index.d.ts:362
MIME type of the file as defined by sender
Returns
string
thumbnail
Get Signature
get thumbnail():
PhotoSize
Defined in: contexts/index.d.ts:358
Animation thumbnail as defined by sender
Returns
width
Get Signature
get width():
number
Defined in: contexts/index.d.ts:352
Video width as defined by sender
Returns
number