MessageMediaContact

class pyrogram.raw.types.MessageMediaContact

Attached contact.

Constructor type of MessageMedia.

Details
  • Layer: 126

  • ID: 0xcbf24940

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 32-bit) – User identifier or 0, if the user with the given phone number is not registered.

Methods

This object can be returned by 3 methods:

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

Telegram API method.