public static class TdApi.InternalLinkTypePassportDataRequest extends TdApi.InternalLinkType
| Modifier and Type | Field and Description |
|---|---|
long |
botUserId
User identifier of the service's bot; the corresponding user may be unknown yet.
|
java.lang.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=...
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
nonce
Unique request identifier provided by the service.
|
java.lang.String |
publicKey
Service's public key.
|
java.lang.String |
scope
Telegram Passport element types requested by the service.
|
| Constructor and Description |
|---|
InternalLinkTypePassportDataRequest()
The link contains a request of Telegram passport data.
|
InternalLinkTypePassportDataRequest(long botUserId,
java.lang.String scope,
java.lang.String publicKey,
java.lang.String nonce,
java.lang.String callbackUrl)
The link contains a request of Telegram passport data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long botUserId
public java.lang.String scope
public java.lang.String publicKey
public java.lang.String nonce
public java.lang.String callbackUrl
public static final int CONSTRUCTOR
public InternalLinkTypePassportDataRequest()
public InternalLinkTypePassportDataRequest(long botUserId,
java.lang.String scope,
java.lang.String publicKey,
java.lang.String nonce,
java.lang.String callbackUrl)
botUserId - User identifier of the service's bot; the corresponding user may be unknown yet.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, 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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object