Class: Privy::Models::TelegramAuthResult

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/telegram_auth_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id:, auth_date:, first_name:, hash_:, last_name: nil, photo_url: nil, username: nil) ⇒ Object

Auth result object returned by Telegram when a user authenticates using the login widget.

Parameters:

  • id (Float, nil)
  • auth_date (Float, nil)
  • first_name (String)
  • hash_ (String)
  • last_name (String) (defaults to: nil)
  • photo_url (String) (defaults to: nil)
  • username (String) (defaults to: nil)


# File 'lib/privy/models/telegram_auth_result.rb', line 41

Instance Attribute Details

#auth_dateFloat?

Returns:

  • (Float, nil)


14
# File 'lib/privy/models/telegram_auth_result.rb', line 14

required :auth_date, Float, nil?: true

#first_nameString

Returns:

  • (String)


19
# File 'lib/privy/models/telegram_auth_result.rb', line 19

required :first_name, String

#hash_String

Returns:

  • (String)


24
# File 'lib/privy/models/telegram_auth_result.rb', line 24

required :hash_, String, api_name: :hash

#idFloat?

Returns:

  • (Float, nil)


9
# File 'lib/privy/models/telegram_auth_result.rb', line 9

required :id, Float, nil?: true

#last_nameString?

Returns:

  • (String, nil)


29
# File 'lib/privy/models/telegram_auth_result.rb', line 29

optional :last_name, String

#photo_urlString?

Returns:

  • (String, nil)


34
# File 'lib/privy/models/telegram_auth_result.rb', line 34

optional :photo_url, String

#usernameString?

Returns:

  • (String, nil)


39
# File 'lib/privy/models/telegram_auth_result.rb', line 39

optional :username, String