MessageMediaContact

class pyrogram.raw.types.MessageMediaContact

Attached contact.

Constructor of MessageMedia.

Details:
  • Layer: 223

  • 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 2 functions.

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, click here for more info ».

TL Schema

messageMediaContact#70322949
phone_number:string
first_name:string
last_name:string
vcard:string
user_id:long

= MessageMedia

Parameter Tree

MessageMediaContact
├── phone_numberstring
├── first_namestring
├── last_namestring
├── vcardstring
└── user_idlong

Example

MessageMediaContact(
    phone_number="text",
    first_name="text",
    last_name="text",
    vcard="text",
    user_id=0,
)