messages.AcceptUrlAuth#

class pyrogram.raw.functions.messages.AcceptUrlAuth#

Use this to accept a Seamless Telegram Login authorization request, for more info click here

Usable by Users Bots
Details:
  • Layer: 227

  • ID: 67A3F0DE

Parameters:
  • write_allowed (bool, optional) – Set this flag to allow the bot to send messages to you (if requested)

  • share_phone_number (bool, optional) – Set this flag to share the user’s phone number with the bot (if requested via urlAuthResultRequest.request_phone_number and consented to by the user)

  • peer (InputPeer, optional) – The location of the message

  • msg_id (int 32-bit, optional) – Message ID of the message with the login button

  • button_id (int 32-bit, optional) – ID of the login button

  • url (str, optional) – URL used for link URL authorization, click here for more info »

  • match_code (str, optional) – If urlAuthResultRequest.match_codes was set, the emoji or code selected by the user from the provided list; must always be provided when match_codes is set, even if match_codes_first was set and the code was already validated via messages.checkUrlAuthMatchCode

Returns:

UrlAuthResult