UrlAuthResultRequest#
- class pyrogram.raw.types.UrlAuthResultRequest#
Details about the authorization request, for more info click here
Constructor of
UrlAuthResult.- Details:
Layer:
227ID:
3CD623EC
- Parameters:
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 (
str) – The domain name of the website on which the user will log in.request_write_access (
bool, optional) – Whether the bot would like to send messages to the userrequest_phone_number (
bool, optional) – The app/website is requesting the user’s phone number; if the user consents, set share_phone_number when calling messages.acceptUrlAuthmatch_codes_first (
bool, optional) – 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.checkUrlAuthMatchCode before proceedingis_app (
bool, optional) – 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”browser (
str, optional) – The browser the user used to make the OAuth requestplatform (
str, optional) – The platform (operating system) of the user that made the OAuth requestip (
str, optional) – The IP address of the user making the OAuth requestregion (
str, optional) – The location of the user, inferred from the IP addressmatch_codes (List of
str, optional) – 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.acceptUrlAuth.match_codeuser_id_hint (
int64-bit, optional) – 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.requestUrlAuth before showing the promptverified_app_name (
str, optional) – Can only be set if is_app is set and the app is verified; must replace domain in the confirmation prompt when present
- Functions:
This object can be returned by 2 functions.
Get more info about a Seamless Telegram Login authorization request, for more info click here
Use this to accept a Seamless Telegram Login authorization request, for more info click here