contacts.AddContact#

class pyrogram.raw.functions.contacts.AddContact#

Add an existing telegram user as contact. Use contacts.importContacts to add contacts by phone number, without knowing their Telegram ID.

Usable by Users Bots
Details:
  • Layer: 224

  • ID: D9BA2E54

Parameters:
  • id (InputUser) – Telegram ID of the other user

  • first_name (str) – First name

  • last_name (str) – Last name

  • phone (str) – User’s phone number, may be omitted to simply add the user to the contact list, without a phone number.

  • add_phone_privacy_exception (bool, optional) – Allow the other user to see our phone number?

  • note (TextWithEntities, optional) – A private note for this contact, only visible to us; see here » for more info on contact notes.

Returns:

Updates