telegram-bot-api-nodejs
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -620,5 +620,5 @@ export type ChatType = "private" | "group" | "supergroup" | "channel"; | ||
export declare class TelegramError extends Error { | ||
error_code: number; | ||
status: number; | ||
parameters: Record<string, any>; | ||
constructor(message: string, error_code: number, parameters?: Record<string, any>); | ||
constructor(message: string, status: number, parameters?: Record<string, any>); | ||
} | ||
@@ -625,0 +625,0 @@ /** |
@@ -470,7 +470,7 @@ /** | ||
export class TelegramError extends Error { | ||
error_code; | ||
status; | ||
parameters; | ||
constructor(message, error_code, parameters = {}) { | ||
constructor(message, status, parameters = {}) { | ||
super(message); | ||
this.error_code = error_code; | ||
this.status = status; | ||
this.parameters = parameters; | ||
@@ -477,0 +477,0 @@ } |
{ | ||
"name": "telegram-bot-api-nodejs", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Telegram Bot API client for nodejs", | ||
@@ -5,0 +5,0 @@ "type": "module", |
35932