telegramx.js

RESTOptions

interface

Declaration

interface RESTOptions 

Properties

apiRootproperty#
apiRoot: string;

Base URL of the Bot API server. Change this to use a local Bot API server.

maxRetriesproperty#
maxRetries: number;

How many times to retry a request that Telegram rate-limits (HTTP 429).

timeoutproperty#
timeout: number;

Per-request timeout in milliseconds.