Class: TD::Types::InternalLinkType::PassportDataRequest

Inherits:
TD::Types::InternalLinkType show all
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

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#bot_user_idInteger

User identifier of the service’s bot; the corresponding user may be unknown yet.

Returns:

  • (Integer)

    the current value of bot_user_id



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_urlTD::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.

Returns:

  • (TD::Types::String, nil)

    the current value of callback_url



15
16
17
# File 'lib/tdlib/types/internal_link_type/passport_data_request.rb', line 15

def callback_url
  @callback_url
end

#nonceTD::Types::String

Unique request identifier provided by the service.

Returns:

  • (TD::Types::String)

    the current value of nonce



15
16
17
# File 'lib/tdlib/types/internal_link_type/passport_data_request.rb', line 15

def nonce
  @nonce
end

#public_keyTD::Types::String

Service’s public key.

Returns:

  • (TD::Types::String)

    the current value of public_key



15
16
17
# File 'lib/tdlib/types/internal_link_type/passport_data_request.rb', line 15

def public_key
  @public_key
end

#scopeTD::Types::String

Telegram Passport element types requested by the service.

Returns:

  • (TD::Types::String)

    the current value of scope



15
16
17
# File 'lib/tdlib/types/internal_link_type/passport_data_request.rb', line 15

def scope
  @scope
end