Class: TD::Types::InternalLinkType::PassportDataRequest
- Inherits:
-
TD::Types::InternalLinkType
- Object
- Dry::Struct
- Base
- TD::Types::InternalLinkType
- TD::Types::InternalLinkType::PassportDataRequest
- Defined in:
- lib/tdlib/types/internal_link_type/passport_data_request.rb
Overview
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.
Instance Attribute Summary collapse
-
#bot_user_id ⇒ Integer
User identifier of the service’s bot; the corresponding user may be unknown yet.
-
#callback_url ⇒ TD::Types::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=…
-
#nonce ⇒ TD::Types::String
Unique request identifier provided by the service.
-
#public_key ⇒ TD::Types::String
Service’s public key.
-
#scope ⇒ TD::Types::String
Telegram Passport element types requested by the service.
Method Summary
Methods inherited from Base
Instance Attribute Details
#bot_user_id ⇒ Integer
User identifier of the service’s bot; the corresponding user may be unknown yet.
15 16 17 |
# File 'lib/tdlib/types/internal_link_type/passport_data_request.rb', line 15 def bot_user_id @bot_user_id end |
#callback_url ⇒ TD::Types::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.
15 16 17 |
# File 'lib/tdlib/types/internal_link_type/passport_data_request.rb', line 15 def callback_url @callback_url end |
#nonce ⇒ TD::Types::String
Unique request identifier provided by the service.
15 16 17 |
# File 'lib/tdlib/types/internal_link_type/passport_data_request.rb', line 15 def nonce @nonce end |
#public_key ⇒ TD::Types::String
Service’s public key.
15 16 17 |
# File 'lib/tdlib/types/internal_link_type/passport_data_request.rb', line 15 def public_key @public_key end |
#scope ⇒ TD::Types::String
Telegram Passport element types requested by the service.
15 16 17 |
# File 'lib/tdlib/types/internal_link_type/passport_data_request.rb', line 15 def scope @scope end |