messages.CheckUrlAuthMatchCode#

class pyrogram.raw.functions.messages.CheckUrlAuthMatchCode#

Validate the match code selected by the user against the code shown on the login page, as part of the OAuth authorization flow. Only usable when both match_codes and match_codes_first are set in the urlAuthResultRequest returned by messages.requestUrlAuth. If boolTrue is returned, proceed with the login flow and pass the verified code to messages.acceptUrlAuth.match_code.

Usable by Users Bots
Details:
  • Layer: 227

  • ID: C9A47B0B

Parameters:
  • url (str) – The OAuth deep link

  • match_code (str) – The emoji or code selected by the user from the list in urlAuthResultRequest.match_codes

Returns:

bool