Comparing version 0.0.48 to 0.0.49
@@ -753,3 +753,11 @@ "use strict"; | ||
await Promise.all(this.lazyloadPlugins.map(async (plugin) => this.extend(await plugin))); | ||
this.info = await this.api.getMe(); | ||
const info = await this.api.getMe({ | ||
suppress: true, | ||
}); | ||
if (info instanceof errors_1.TelegramError) { | ||
if (info.code === 404) | ||
info.message = "The bot token is incorrect. Check it in BotFather."; | ||
throw info; | ||
} | ||
this.info = info; | ||
} | ||
@@ -756,0 +764,0 @@ /** |
{ | ||
"name": "gramio", | ||
"type": "commonjs", | ||
"version": "0.0.48", | ||
"version": "0.0.49", | ||
"description": "Powerful, extensible and really type-safe Telegram Bot API framework", | ||
@@ -28,6 +28,6 @@ "main": "./dist/index.js", | ||
"author": "kravets", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@biomejs/biome": "1.8.3", | ||
"@types/bun": "^1.1.6", | ||
"@types/bun": "^1.1.8", | ||
"@types/debug": "^4.1.12", | ||
@@ -39,8 +39,8 @@ "pkgroll": "^2.4.2", | ||
"@gramio/callback-data": "^0.0.3", | ||
"@gramio/contexts": "^0.0.22", | ||
"@gramio/contexts": "^0.0.23", | ||
"@gramio/files": "^0.0.12", | ||
"@gramio/format": "^0.1.3", | ||
"@gramio/keyboards": "^0.3.3", | ||
"@gramio/types": "^7.9.0", | ||
"debug": "^4.3.6", | ||
"@gramio/types": "^7.10.0", | ||
"debug": "^4.3.7", | ||
"inspectable": "^3.0.2", | ||
@@ -47,0 +47,0 @@ "middleware-io": "^2.8.1" |
@@ -5,3 +5,3 @@ # GramIO | ||
[![Bot API](https://img.shields.io/badge/Bot%20API-7.9-blue?logo=telegram&style=flat&labelColor=000&color=3b82f6)](https://core.telegram.org/bots/api) | ||
[![Bot API](https://img.shields.io/badge/Bot%20API-7.10-blue?logo=telegram&style=flat&labelColor=000&color=3b82f6)](https://core.telegram.org/bots/api) | ||
[![npm](https://img.shields.io/npm/v/gramio?logo=npm&style=flat&labelColor=000&color=3b82f6)](https://www.npmjs.org/package/@gramio/core) | ||
@@ -8,0 +8,0 @@ [![JSR](https://jsr.io/badges/@gramio/core)](https://jsr.io/@gramio/core) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98909
23
2504
+ Added@gramio/contexts@0.0.23(transitive)
- Removed@gramio/contexts@0.0.22(transitive)
Updated@gramio/contexts@^0.0.23
Updated@gramio/types@^7.10.0
Updateddebug@^4.3.7