InternalLinkTypePassportDataRequest class final

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

Inheritance

Constructors

InternalLinkTypePassportDataRequest({required int botUserId, required String scope, required String publicKey, required String nonce, required String callbackUrl, dynamic extra, int? clientId})
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
const
InternalLinkTypePassportDataRequest.fromJson(Map<String, dynamic> json)
Parses a InternalLinkTypePassportDataRequest from TDLib JSON.
factory

Properties

botUserId → int
User identifier of the service's bot
final
callbackUrl → String
An HTTP URL to open once the request is finished, canceled, or failed with the parameters tg_passport=success, tg_passport=cancel, or tg_passport=error&error=... respectively. If empty, then onActivityResult method must be used to return response on Android, or the link tgbot{bot_user_id}://passport/success or tgbot{bot_user_id}://passport/cancel must be opened otherwise
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
nonce → String
Unique request identifier provided by the service
final
publicKey → String
Service's public key
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → String
Telegram Passport element types requested by the service
final

Methods

copyWith({int? botUserId, String? scope, String? publicKey, String? nonce, String? callbackUrl, dynamic extra, int? clientId}) → InternalLinkTypePassportDataRequest
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.