Skip to content

miniproto.errors.DatacenterMigration

DatacenterMigration(dc_id: int, *, kind: str = 'MIGRATE', message: str | None = None, request: object | None = None, context: Mapping[str, Any] | None = None) -> None

Bases: InvalidDatacenter

Telegram directs the request to dc_id for a named migration kind.

Create a migration error from the target DC and migration kind.

Parameters:

  • dc_id (int) – Target Telegram data-center ID.
  • kind (str) – Migration family extracted from Telegram’s symbolic error name.
  • message (str | None) – Optional raw error text; a migration name is generated when absent.
  • request (object | None) – Optional request that Telegram directed to another DC.
  • context (Mapping[str, Any] | None) – Optional secret-safe diagnostic metadata.