Skip to main content

Built and signed on GitHub Actions

Powerful Telegram Bot API framework

This package works with Node.js, Deno, BunIt is unknown whether this package works with Cloudflare Workers, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
It is unknown whether this package works with Browsers
JSR Score
76%
Published
4 months ago (0.1.5)
class TelegramError
extends Error

Represent TelegramAPIResponseError and thrown in API calls

Constructors

new
TelegramError(
error: TelegramAPIResponseError,
method: T,
)

Construct new TelegramError

Type Parameters

T extends keyof APIMethods

Properties

See TelegramAPIResponseError.error_code

Name of the API Method

Params that were sent

abstract
payload: TelegramResponseParameters

Describes why a request was unsuccessful.

Add Package

deno add jsr:@gramio/core

Import symbol

import { TelegramError } from "@gramio/core";

---- OR ----

Import directly with a jsr specifier

import { TelegramError } from "jsr:@gramio/core";

Add Package

npx jsr add @gramio/core

Import symbol

import { TelegramError } from "@gramio/core";

Add Package

yarn dlx jsr add @gramio/core

Import symbol

import { TelegramError } from "@gramio/core";

Add Package

pnpm dlx jsr add @gramio/core

Import symbol

import { TelegramError } from "@gramio/core";

Add Package

bunx jsr add @gramio/core

Import symbol

import { TelegramError } from "@gramio/core";