Skip to content

Telegram dashboard

SDK Reference · Resource

Telegram dashboard

Connect and configure the Telegram client dashboard.

method

getConnection()

Get the Telegram dashboard connection

Returns connection state and bot details for the authenticated account.

Signature

Promiseclient.telegram.getConnection(options: TelegramDashboardGetConnectionOptions = {}): Promise<TelegramDashboardGetConnectionResponse>

Parameters

NameTypeRequirementDescription
acceptLanguagestringOptionalPreferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English.

Example

const result = await client.telegram.getConnection();

Returns

TelegramConnectionResponse

The operation completed successfully.

typeTelegramConnectionResponse8fields
available
boolean
Required
—
status
string
Required
—
bot_username
string
Required
—
telegram_username
string
Optional
—
locale
string
Required
—
timezone
string
Required
—
linked_at
string
Optional
—
pending_expires_at
string
Optional
—

Throws

ApiError

Normalized API, transport, and response processing failure.

  • kind: "validation"The request arguments or business rules are invalid.
  • kind: "authentication"Authentication credentials are missing, expired, or invalid.
  • kind: "permission"The authenticated account cannot perform this operation.
  • kind: "network"The request could not reach ProxyRequest.
  • kind: "unexpected"The response could not be decoded or did not match the SDK contract.
Advanced variants
  • client.telegram.getConnectionWithResponse(options): Promise<ApiResponse<TelegramDashboardGetConnectionResponse>>

    Returns response status, headers, ETag and idempotency metadata with the decoded data.

method

updateConnection()

Update Telegram dashboard preferences

Changes the language or timezone used by the Telegram dashboard.

Signature

Promiseclient.telegram.updateConnection(options: TelegramDashboardUpdateConnectionOptions = {}): Promise<TelegramDashboardUpdateConnectionResponse>

Parameters

NameTypeRequirementDescription
acceptLanguagestringOptionalPreferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English.
bodyPatchedTelegramConnectionUpdateRequestOptional—

Example

const result = await client.telegram.updateConnection({
body: {}
});

Returns

TelegramConnectionResponse

The operation completed successfully.

typeTelegramConnectionResponse8fields
available
boolean
Required
—
status
string
Required
—
bot_username
string
Required
—
telegram_username
string
Optional
—
locale
string
Required
—
timezone
string
Required
—
linked_at
string
Optional
—
pending_expires_at
string
Optional
—

Throws

ApiError

Normalized API, transport, and response processing failure.

  • kind: "validation"The request arguments or business rules are invalid.
  • kind: "authentication"Authentication credentials are missing, expired, or invalid.
  • kind: "permission"The authenticated account cannot perform this operation.
  • kind: "network"The request could not reach ProxyRequest.
  • kind: "unexpected"The response could not be decoded or did not match the SDK contract.
Advanced variants
  • client.telegram.updateConnectionWithResponse(options): Promise<ApiResponse<TelegramDashboardUpdateConnectionResponse>>

    Returns response status, headers, ETag and idempotency metadata with the decoded data.

method

deleteConnection()

Disconnect the Telegram dashboard

Revokes the Telegram identity link and all future bot sessions.

Signature

Promiseclient.telegram.deleteConnection(options: TelegramDashboardDeleteConnectionOptions = {}): Promise<TelegramDashboardDeleteConnectionResponse>

Parameters

NameTypeRequirementDescription
acceptLanguagestringOptionalPreferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es, zh-hans, ja. Regional language tags and quality weights are accepted; unsupported or omitted values use English.

Example

const result = await client.telegram.deleteConnection();

Returns

void

No response body

Throws

ApiError

Normalized API, transport, and response processing failure.

  • kind: "validation"The request arguments or business rules are invalid.
  • kind: "authentication"Authentication credentials are missing, expired, or invalid.
  • kind: "permission"The authenticated account cannot perform this operation.
  • kind: "network"The request could not reach ProxyRequest.
  • kind: "unexpected"The response could not be decoded or did not match the SDK contract.
Advanced variants
  • client.telegram.deleteConnectionWithResponse(options): Promise<ApiResponse<TelegramDashboardDeleteConnectionResponse>>

    Returns response status, headers, ETag and idempotency metadata with the decoded data.