acceptOauthRequest¶
Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization. May return an empty link if just a toast about successful login has to be shown
acceptOauthRequest(
url: string,
match_code: string,
allow_write_access: Bool,
allow_phone_number_access: Bool
) → HttpUrl
url¶
string
URL of the OAuth deep link
match_code¶
string
The matching code chosen by the user
allow_write_access¶
Bool
Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages
allow_phone_number_access¶
Bool
Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number