telegram-bot-api-nodejs 1.0.17 → 1.0.18
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
|
@@ -662,4 +662,5 @@ export declare function isChatNotFoundError(err: unknown): boolean;
|
|
|
662
662
|
export declare function isUserDeactivatedError(err: unknown): boolean;
|
|
663
663
|
export declare function isBotKickedFromSupergroupError(err: unknown): boolean;
|
|
664
664
|
export declare function isNotEnoughRightsError(err: unknown): boolean;
|
|
665
|
+
export declare function isUpgradeToSupergroupChatError(err: unknown): boolean;
|
|
665
666
|
export {};
|
package/index.js
CHANGED
|
@@ -546,3 +546,6 @@ export function isBotKickedFromSupergroupError(err) {
|
|
|
546
546
|
export function isNotEnoughRightsError(err) {
|
|
547
547
|
return err instanceof Error && err.message.includes("Bad Request: not enough rights to send text messages to the chat");
|
|
548
548
|
}
|
|
549
|
+
export function isUpgradeToSupergroupChatError(err) {
|
|
550
|
+
return err instanceof Error && err.message.includes("Bad Request: group chat was upgraded to a supergroup chat");
|
|
551
|
+
}
|