Module tdlight.api

Class TdApi.GetPassportAuthorizationForm

Enclosing class:
TdApi

public static final class TdApi.GetPassportAuthorizationForm extends TdApi.Function<TdApi.PassportAuthorizationForm>
Returns a Telegram Passport authorization form for sharing data with a service.

Returns PassportAuthorizationForm

  • Field Details

    • botUserId

      public long botUserId
      User identifier of the service's bot.
    • scope

      public String scope
      Telegram Passport element types requested by the service.
    • publicKey

      public String publicKey
      Service's public key.
    • nonce

      public String nonce
      Unique request identifier provided by the service.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • GetPassportAuthorizationForm

      public GetPassportAuthorizationForm()
      Returns a Telegram Passport authorization form for sharing data with a service.

      Returns PassportAuthorizationForm

    • GetPassportAuthorizationForm

      public GetPassportAuthorizationForm(long botUserId, String scope, String publicKey, String nonce)
      Returns a Telegram Passport authorization form for sharing data with a service.

      Returns PassportAuthorizationForm

      Parameters:
      botUserId - long User identifier of the service's bot.
      scope - String Telegram Passport element types requested by the service.
      publicKey - String Service's public key.
      nonce - String Unique request identifier provided by the service.
    • GetPassportAuthorizationForm

      public GetPassportAuthorizationForm(DataInput input) throws IOException
      Returns a Telegram Passport authorization form for sharing data with a service.

      Returns PassportAuthorizationForm

      Throws:
      IOException
  • Method Details