telegram-bot-api-nodejs 1.0.30 → 1.0.31
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 +1 -0
- package/index.js +3 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -769,4 +769,5 @@ export declare function isUserDeactivatedError(err: unknown): boolean;
|
|
|
769
769
|
export declare function isBotKickedFromSupergroupError(err: unknown): boolean;
|
|
770
770
|
export declare function isNotEnoughRightsError(err: unknown): boolean;
|
|
771
771
|
export declare function isUpgradeToSupergroupChatError(err: unknown): boolean;
|
|
772
|
+
export declare function isTextMustBeNonEmptyError(err: unknown): boolean;
|
|
772
773
|
export {};
|
package/index.js
CHANGED
|
@@ -562,3 +562,6 @@ export function isNotEnoughRightsError(err) {
|
|
|
562
562
|
export function isUpgradeToSupergroupChatError(err) {
|
|
563
563
|
return err instanceof Error && err.message.includes("Bad Request: group chat was upgraded to a supergroup chat");
|
|
564
564
|
}
|
|
565
|
+
export function isTextMustBeNonEmptyError(err) {
|
|
566
|
+
return err instanceof Error && err.message.includes("Bad Request: text must be non-empty");
|
|
567
|
+
}
|