Package org.drinkless.tdlib
Class TdApi.InternalLinkTypePassportDataRequest
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.InternalLinkType
-
- org.drinkless.tdlib.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 Summary
Fields Modifier and Type Field Description longbotUserIdUser identifier of the service's bot.StringcallbackUrlAn HTTP URL to open once the request is finished or canceled with the parameter tgPassport=success or tgPassport=cancel respectively.static intCONSTRUCTORIdentifier uniquely determining type of the object.StringnonceUnique request identifier provided by the service.StringpublicKeyService's public key.StringscopeTelegram Passport element types requested by the service.
-
Constructor Summary
Constructors Constructor Description InternalLinkTypePassportDataRequest()The link contains a request of Telegram passport data.InternalLinkTypePassportDataRequest(long botUserId, String scope, String publicKey, String nonce, String callbackUrl)The link contains a request of Telegram passport data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-