Skip to content

miniproto.config.DeviceInfo

DeviceInfo(device_model: str = 'miniproto', system_version: str = 'unknown', app_version: str = '0.1.0', lang_code: str = 'en', system_lang_code: str = 'en') -> None

Application and device identity sent when initializing a Telegram session.

Defaults identify this library without probing the host system; callers may supply platform-specific values when Telegram-facing metadata must be customized.

Attributes:

  • device_model (str) – Human-readable device model sent in Telegram initialization, defaulting to "miniproto".
  • system_version (str) – Operating-system version label sent to Telegram, defaulting to "unknown".
  • app_version (str) – Application version label sent to Telegram, defaulting to "0.1.0".
  • lang_code (str) – Preferred interface language code, defaulting to "en".
  • system_lang_code (str) – Device system language code, defaulting to "en".