OauthLinkInfo¶
Information about the OAuth authorization
OauthLinkInfo(
user_id: int53,
url: string,
domain: string,
from_app: Bool,
verified_app_name: string,
bot_user_id: int53,
request_write_access: Bool,
request_phone_number_access: Bool,
browser: string,
platform: string,
ip_address: string,
location: string,
match_code_first: Bool,
match_codes: list of string
) → OauthLinkInfo
user_id¶
int53
Identifier of the user for which the link was generated; may be 0 if unknown. The corresponding user may be unknown. If the user is logged in the application, then they must be chosen for authorization by default
url¶
string
An HTTP URL where the user authorizes
domain¶
string
A domain of the URL
from_app¶
Bool
True, if the authorization originates from an application
verified_app_name¶
string
Verified name of the application; if empty, then "Unverified App" must be shown instead
bot_user_id¶
int53
User identifier of a bot linked with the website
request_write_access¶
Bool
True, if the user must be asked for the permission to the bot to send them messages
request_phone_number_access¶
Bool
True, if the user must be asked for the permission to share their phone number
browser¶
string
The version of a browser used for the authorization
platform¶
string
Operating system the browser is running on
ip_address¶
string
IP address from which the authorization is performed, in human-readable format
location¶
string
Human-readable description of a country and a region from which the authorization is performed, based on the IP address
match_code_first¶
Bool
True, if code matching dialog must be shown first and checkOauthRequestMatchCode must be called before acceptOauthRequest. Otherwise, checkOauthRequestMatchCode must not be called
match_codes¶
list of string
The list of codes to match; may be empty if irrelevant