Class TdApi.InternalLinkTypePassportDataRequest

  • Enclosing class:
    TdApi

    public static 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 app, otherwise ignore it.
    • Field Detail

      • 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 or canceled with the parameter tgPassport=success or tgPassport=cancel respectively. If empty, then the link tgbot{botUserId}://passport/success or tgbot{botUserId}://passport/cancel needs to be opened instead.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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 app, 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 app, otherwise ignore it.
        Parameters:
        botUserId - User identifier of the service's bot.
        scope - Telegram Passport element types requested by the service.
        publicKey - Service's public key.
        nonce - Unique request identifier provided by the service.
        callbackUrl - An HTTP URL to open once the request is finished or canceled with the parameter tgPassport=success or tgPassport=cancel respectively. If empty, then the link tgbot{botUserId}://passport/success or tgbot{botUserId}://passport/cancel needs to be opened instead.