telegram-bot-api-nodejs 1.2.8 → 1.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +6 -2
- package/index.js +1 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -30,21 +30,25 @@ export interface SendPhotoOptions extends SendBasicOptions {
|
|
|
30
30
|
photo: string;
|
|
31
31
|
caption?: string;
|
|
32
32
|
parse_mode?: ParseMode;
|
|
33
|
+
show_caption_above_media?: boolean;
|
|
33
34
|
}
|
|
34
35
|
export interface SendAudioOptions extends SendBasicOptions {
|
|
35
36
|
audio: string;
|
|
36
37
|
caption?: string;
|
|
37
38
|
parse_mode?: ParseMode;
|
|
39
|
+
show_caption_above_media?: boolean;
|
|
38
40
|
}
|
|
39
41
|
export interface SendAnimationOptions extends SendBasicOptions {
|
|
40
42
|
animation: string;
|
|
41
|
-
parse_mode?: ParseMode;
|
|
42
43
|
caption?: string;
|
|
44
|
+
parse_mode?: ParseMode;
|
|
45
|
+
show_caption_above_media?: boolean;
|
|
43
46
|
}
|
|
44
47
|
export interface SendDocumentOptions extends SendBasicOptions {
|
|
45
48
|
document: string;
|
|
46
|
-
parse_mode?: ParseMode;
|
|
47
49
|
caption?: string;
|
|
50
|
+
parse_mode?: ParseMode;
|
|
51
|
+
show_caption_above_media?: boolean;
|
|
48
52
|
}
|
|
49
53
|
export interface SendVideoOptions extends SendBasicOptions {
|
|
50
54
|
video: string;
|
package/index.js
CHANGED
|
@@ -618,7 +618,7 @@ export function isFailToGetHTTPURLContentError(err) {
|
|
|
618
618
|
}
|
|
619
619
|
// Bad Request: wrong file identifier/HTTP URL specified
|
|
620
620
|
export function isWrongFileIdentifierError(err) {
|
|
621
|
-
return err instanceof Error && err.message.includes("wrong file identifier/
|
|
621
|
+
return err instanceof Error && err.message.toLowerCase().includes("wrong file identifier/http url specified");
|
|
622
622
|
}
|
|
623
623
|
// Bad Request: invalid file HTTP URL specified: Unsupported URL protocol
|
|
624
624
|
export function isInvalidFileUrlSpecifiedError(err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "telegram-bot-api-nodejs",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.10",
|
|
4
4
|
"description": "Telegram Bot API client for nodejs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"author": "",
|
|
26
26
|
"license": "ISC",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/node": "^25.2.
|
|
28
|
+
"@types/node": "^25.2.2"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
31
|
+
"@typescript/native-preview": "^7.0.0-dev.20260208.1"
|
|
32
32
|
}
|
|
33
33
|
}
|