SendCode

class pyrogram.api.functions.auth.SendCode(phone_number: str, api_id: int, api_hash: str, allow_flashcall: bool = None, current_number: bool = None)
ID

0x86aef0ec

Parameters:
  • phone_numberstr
  • api_idint 32-bit
  • api_hashstr
  • allow_flashcall (optional) – bool
  • current_number (optional) – bool
Raises:

Error

Returns:

auth.SentCode