Skip to content

miniproto.auth.bootstrap.telegram_rsa_public_keys

miniproto.auth.bootstrap.telegram_rsa_public_keys

Section titled “miniproto.auth.bootstrap.telegram_rsa_public_keys”
telegram_rsa_public_keys(*, test_mode: bool) -> tuple[RSAKey, ...]

Return Telegram’s trusted RSA public keys for the selected environment.

Parameters:

  • test_mode (bool) – Select Telegram’s test-server keys instead of production keys.

Returns:

  • tuple[RSAKey, …] – Parsed public keys whose fingerprints may be advertised by Telegram.