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.
Files changed (3) hide show
  1. package/index.d.ts +1 -0
  2. package/index.js +3 -0
  3. 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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "telegram-bot-api-nodejs",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Telegram Bot API client for nodejs",
5
5
  "type": "module",
6
6
  "main": "index.js",