InputContactMessageContent

class telegram.InputContactMessageContent(phone_number, first_name, last_name=None, vcard=None, *, api_kwargs=None)[source]

Bases: telegram.InputMessageContent

Represents the content of a contact message to be sent as the result of an inline query.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their phone_number is equal.

Parameters:
phone_number[source]

Contact’s phone number.

Type:

str

first_name[source]

Contact’s first name.

Type:

str

last_name[source]

Optional. Contact’s last name.

Type:

str

vcard[source]

Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes.

Type:

str