Skip to content

miniproto.config.DeviceInfo

DeviceInfo(device_model: str = 'miniproto', system_version: str = 'unknown', app_version: str = '0.1.1', 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. Supply platform-specific values to customize the metadata sent to Telegram.

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.1".
  • lang_code (str) – Preferred interface language code, defaulting to "en".
  • system_lang_code (str) – Device system language code, defaulting to "en".