Class: TD::Types::ConnectedWebsite

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/connected_website.rb

Overview

Contains information about one website the current user is logged in with Telegram.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#bot_user_idInteger

User identifier of a bot linked with the website.

Returns:

  • (Integer)

    the current value of bot_user_id



14
15
16
# File 'lib/tdlib/types/connected_website.rb', line 14

def bot_user_id
  @bot_user_id
end

#browserTD::Types::String

The version of a browser used to log in.

Returns:

  • (TD::Types::String)

    the current value of browser



14
15
16
# File 'lib/tdlib/types/connected_website.rb', line 14

def browser
  @browser
end

#domain_nameTD::Types::String

The domain name of the website.

Returns:

  • (TD::Types::String)

    the current value of domain_name



14
15
16
# File 'lib/tdlib/types/connected_website.rb', line 14

def domain_name
  @domain_name
end

#idInteger

Website identifier.

Returns:

  • (Integer)

    the current value of id



14
15
16
# File 'lib/tdlib/types/connected_website.rb', line 14

def id
  @id
end

#ipTD::Types::String

IP address from which the user was logged in, in human-readable format.

Returns:

  • (TD::Types::String)

    the current value of ip



14
15
16
# File 'lib/tdlib/types/connected_website.rb', line 14

def ip
  @ip
end

#last_active_dateInteger

Point in time (Unix timestamp) when obtained authorization was last used.

Returns:

  • (Integer)

    the current value of last_active_date



14
15
16
# File 'lib/tdlib/types/connected_website.rb', line 14

def last_active_date
  @last_active_date
end

#locationTD::Types::String

Human-readable description of a country and a region, from which the user was logged in, based on the IP address.

Returns:

  • (TD::Types::String)

    the current value of location



14
15
16
# File 'lib/tdlib/types/connected_website.rb', line 14

def location
  @location
end

#log_in_dateInteger

Point in time (Unix timestamp) when the user was logged in.

Returns:

  • (Integer)

    the current value of log_in_date



14
15
16
# File 'lib/tdlib/types/connected_website.rb', line 14

def 
  @log_in_date
end

#platformTD::Types::String

Operating system the browser is running on.

Returns:

  • (TD::Types::String)

    the current value of platform



14
15
16
# File 'lib/tdlib/types/connected_website.rb', line 14

def platform
  @platform
end