export Class
VideoNote ​
extends ​
implements ​
Constructor ​
ts
new VideoNote( packet )
Parameter | Type | Description |
---|---|---|
packet? | string | FilePacket | The packet, the filel_id, or absolute path to the file to read. |
Properties ​
get form : [string, ReadStream, string]
​
get id : string
​
readonly client? : Client
​
The client will only be availble if the class is passed by tgx-core itself.
file_id? : string
​
file_path? : string
​
file_size? : number
​
file_unique_id? : string
​
length? : number
​
path? : string
​
thumbnail? : PhotoSize
​
Methods ​
asyncdownload( path ) ​
Fetches the file and downloads it.
Parameter | Type | Description |
---|---|---|
path | string | Leave empty if you want a stream, or an absolute path to the file where you want to write the Stream. |
Returns: Promise
<boolean
| internal.Stream
>
asyncfetch( ) ​
Fetch the file from Telegram, this is required for downloading the file.
Returns: Promise
<boolean
| VideoNote
>