Hide navigation sidebar
Hide table of contents sidebar
PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki.
Back to top
Toggle table of contents sidebar

# Credentials

class telegram.Credentials(secure_data, nonce, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  secure_data

    Credentials for encrypted data

    Type:

      `telegram.SecureData`

  nonce

    Bot-specified nonce

    Type:

      `str`

  Available In

  - `telegram.EncryptedCredentials.data`

  - `telegram.EncryptedCredentials.decrypted_data`

  - `telegram.PassportData.decrypted_credentials`

  classmethod de_json(data, bot)

    See `telegram.TelegramObject.de_json()`.