Link Search Menu Expand Document

Constructor: urlAuthResultRequest

Back to constructors index

Details about the authorization request, for more info click here »

Attributes:

NameTypeRequiredDescription
request_write_accessBoolOptionalWhether the bot would like to send messages to the user
request_phone_numberBoolOptional
match_codes_firstBoolOptional
botUserOptionalUsername of a bot, which will be used for user authorization. If not specified, the current bot’s username will be assumed. The url’s domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details.
domainstringYesThe domain name of the website on which the user will log in.
browserstringOptional
platformstringOptional
ipstringOptional
regionstringOptional
match_codesArray of stringOptional
user_id_hintlongOptional

Type: UrlAuthResult

Example:

$urlAuthResultRequest = ['_' => 'urlAuthResultRequest', 'request_write_access' => Bool, 'request_phone_number' => Bool, 'match_codes_first' => Bool, 'bot' => User, 'domain' => 'string', 'browser' => 'string', 'platform' => 'string', 'ip' => 'string', 'region' => 'string', 'match_codes' => ['string', 'string'], 'user_id_hint' => long];