You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a TypeScript wrapper for the [Telegram Bot API](https://core.telegram.org/bots/api) Node.js and browsers. It allows you to easily interact with the Telegram Bot API using TypeScript.
Copy file name to clipboardExpand all lines: src/types/InputMediaVideo.ts
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,18 @@ export type InputMediaVideo = {
26
26
*/
27
27
thumbnail?: InputFile|string;
28
28
29
+
/**
30
+
* Optional. Cover for the video in the message. Pass a file_id to send a file that exists on the Telegram servers
31
+
* (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>”
32
+
* to upload a new one using multipart/form-data under <file_attach_name> name. [More information on Sending Files](https://core.telegram.org/bots/api#sending-files)
33
+
*/
34
+
cover?: InputFile|string;
35
+
36
+
/**
37
+
* Optional. Start timestamp for the video in the message
38
+
*/
39
+
start_timestamp?: number;
40
+
29
41
/**
30
42
* Optional. Caption of the video to be sent, 0-1024 characters after entities parsing
Copy file name to clipboardExpand all lines: src/types/InputPaidMediaVideo.ts
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,18 @@ export type InputPaidMediaVideo = {
30
30
*/
31
31
thumbnail?: InputFile|string;
32
32
33
+
/**
34
+
* Optional. Cover for the video in the message. Pass a file_id to send a file that exists on the Telegram servers
35
+
* (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>”
36
+
* to upload a new one using multipart/form-data under <file_attach_name> name. [More information on Sending Files](https://core.telegram.org/bots/api#sending-files)
37
+
*/
38
+
cover?: InputFile|string;
39
+
40
+
/**
41
+
* Optional. Start timestamp for the video in the message
0 commit comments