MessageMediaContact#

class pyrogram.raw.types.MessageMediaContact#

Attached contact.

Constructor of MessageMedia.

Details:
  • Layer: 158

  • ID: 70322949

Parameters:
  • phone_number (str) – Phone number.

  • first_name (str) – Contact’s first name.

  • last_name (str) – Contact’s last name.

  • vcard (str) – VCARD of contact.

  • user_id (int 64-bit) – User identifier or 0, if the user with the given phone number is not registered.

Functions:

This object can be returned by 3 functions.

messages.GetWebPagePreview

Get preview of webpage.

messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat).

messages.UploadImportedMedia

Upload a media file associated with an imported chat.