telegram-bot-api-nodejs 1.0.33 → 1.0.35
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 +2 -2
- package/index.js +1 -0
- package/package.json +3 -2
package/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { formatPrice } from "./currencies.js";
|
|
1
2
|
export type ChatType = "private" | "group" | "supergroup" | "channel";
|
|
2
3
|
export type ChatAction = "typing" | "upload_photo" | "record_video" | "upload_video" | "record_audio" | "upload_audio" | "upload_document" | "find_location" | "record_video_note" | "upload_video_note";
|
|
3
4
|
export type ChatMemberStatus = "creator" | "administrator" | "member" | "restricted" | "left" | "kicked";
|
|
@@ -555,7 +556,7 @@ interface ChosenInlineResult {
|
|
|
555
556
|
inline_message_id?: string;
|
|
556
557
|
query: string;
|
|
557
558
|
}
|
|
558
|
-
interface Invoice {
|
|
559
|
+
export interface Invoice {
|
|
559
560
|
title: string;
|
|
560
561
|
description: string;
|
|
561
562
|
start_parameter: string;
|
|
@@ -772,4 +773,3 @@ export declare function isUpgradeToSupergroupChatError(err: unknown): boolean;
|
|
|
772
773
|
export declare function isTextMustBeNonEmptyError(err: unknown): boolean;
|
|
773
774
|
export declare function isTooManyRequestsError(err: unknown): boolean;
|
|
774
775
|
export declare function parseRetryAfterTime(err: unknown): number;
|
|
775
|
-
export {};
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "telegram-bot-api-nodejs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.35",
|
|
4
4
|
"description": "Telegram Bot API client for nodejs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"build": "tsc",
|
|
18
18
|
"watch": "tsc --watch",
|
|
19
19
|
"pretest": "npm run build",
|
|
20
|
-
"test": "node --test"
|
|
20
|
+
"test": "node --test",
|
|
21
|
+
"spec": "node --test spec.js"
|
|
21
22
|
},
|
|
22
23
|
"author": "",
|
|
23
24
|
"license": "ISC",
|