Layer 227
constructor
urlAuthResultRequest#f8f8eb1e flags:# request_write_access:flags.0?true request_phone_number:flags.1?true match_codes_first:flags.5?true bot:User domain:string browser:flags.2?string platform:flags.2?string ip:flags.2?string region:flags.2?string match_codes:flags.3?Vector<string> user_id_hint:flags.4?long = UrlAuthResult;

Parameters

Name Type Description
RequestWriteAccess flags .0? true Whether the bot would like to send messages to the user
RequestPhoneNumber flags .1? true The app/website is requesting the user's phone number; if the user consents, set share_phone_number when calling messages. accept Url Auth
MatchCodesFirst flags .5? true Can only be set if match_codes is also set; if set, clients must ask the user to select the matching code before showing the rest of the login confirmation UI, and must validate the selection with messages. check Url Auth Match Code before proceeding
IsApp flags .6? true Set if an OAuth request originated from an app rather than a website; when set, domain must be replaced in the confirmation prompt by verified_app_name (if present) or "Unverified App"
Bot User Username 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.
Domain string The domain name of the website on which the user will log in.
Browser flags .2? string The browser the user used to make the OAuth request
Platform flags .2? string The platform (operating system) of the user that made the OAuth request
Ip flags .2? string The IP address of the user making the OAuth request
Region flags .2? string The location of the user, inferred from the IP address
MatchCodes flags .3? Vector < string > A list of emojis or codes, one of which is currently being shown on the login page of the website/app; the user must select the matching one and pass it to messages. accept Url Auth. match_code
UserIdHint flags .4? long May contain the ID of the account for which the login request was created; if it matches a logged-in account, clients should automatically switch to that account and re-invoke messages. request Url Auth before showing the prompt
VerifiedAppName flags .7? string Can only be set if is_app is set and the app is verified; must replace domain in the confirmation prompt when present

Returns

UrlAuthResult

Gogram Example

// Creating UrlAuthResultRequest constructor
obj := &tg.UrlAuthResultRequest{
    RequestWriteAccess: nil,
    RequestPhoneNumber: nil,
    MatchCodesFirst: nil,
    IsApp: nil,
    Bot: &tg.User{},
    Domain: "Hello, World!",
    // ... more required fields
}