Module tdlight.api

Class TdApi.InternalLinkTypePassportDataRequest

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.InternalLinkType
it.tdlight.jni.TdApi.InternalLinkTypePassportDataRequest
Enclosing class:
TdApi

public static final class TdApi.InternalLinkTypePassportDataRequest extends TdApi.InternalLinkType
The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the application; otherwise, ignore it.
  • 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.
    • callbackUrl

      public String callbackUrl
      An HTTP URL to open once the request is finished, canceled, or failed with the parameters tgPassport=success, tgPassport=cancel, or tgPassport=error&error=... respectively. If empty, then onActivityResult method must be used to return response on Android, or the link tgbot{botUserId}://passport/success or tgbot{botUserId}://passport/cancel must be opened otherwise.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • InternalLinkTypePassportDataRequest

      public InternalLinkTypePassportDataRequest()
      The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the application; otherwise, ignore it.
    • InternalLinkTypePassportDataRequest

      public InternalLinkTypePassportDataRequest(long botUserId, String scope, String publicKey, String nonce, String callbackUrl)
      The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the application; otherwise, ignore it.
      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.
      callbackUrl - String An HTTP URL to open once the request is finished, canceled, or failed with the parameters tgPassport=success, tgPassport=cancel, or tgPassport=error&error=... respectively. If empty, then onActivityResult method must be used to return response on Android, or the link tgbot{botUserId}://passport/success or tgbot{botUserId}://passport/cancel must be opened otherwise.
    • InternalLinkTypePassportDataRequest

      public InternalLinkTypePassportDataRequest(DataInput input) throws IOException
      The link contains a request of Telegram passport data. Call getPassportAuthorizationForm with the given parameters to process the link if the link was received from outside of the application; otherwise, ignore it.
      Throws:
      IOException
  • Method Details