ConnectedWebsite
public struct ConnectedWebsite : Codable, Equatable, FunctionResult
Contains information about one website the current user is logged in with Telegram
-
Website identifier
Declaration
Swift
public let id: TDInt64
-
The domain name of the website
Declaration
Swift
public let domainName: String
-
User identifier of a bot linked with the website
Declaration
Swift
public let botUserId: Int32
-
The version of a browser used to log in
Declaration
Swift
public let browser: String
-
Operating system the browser is running on
Declaration
Swift
public let platform: String
-
Point in time (Unix timestamp) when the user was logged in
Declaration
Swift
public let logInDate: Int32
-
Point in time (Unix timestamp) when obtained authorization was last used
Declaration
Swift
public let lastActiveDate: Int32
-
IP address from which the user was logged in, in human-readable format
Declaration
Swift
public let ip: String
-
Human-readable description of a country and a region, from which the user was logged in, based on the IP address
Declaration
Swift
public let location: String
-
Contains information about one website the current user is logged in with Telegram
Declaration
Swift
public init(id: TDInt64, domainName: String, botUserId: Int32, browser: String, platform: String, logInDate: Int32, lastActiveDate: Int32, ip: String, location: String)
Parameters
id
Website identifier
domainName
The domain name of the website
botUserId
User identifier of a bot linked with the website
browser
The version of a browser used to log in
platform
Operating system the browser is running on
logInDate
Point in time (Unix timestamp) when the user was logged in
lastActiveDate
Point in time (Unix timestamp) when obtained authorization was last used
ip
IP address from which the user was logged in, in human-readable format
location
Human-readable description of a country and a region, from which the user was logged in, based on the IP address