Interface InlineQueryResultContact

Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the contact.

Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

interface InlineQueryResultContact {
    firstName: string;
    id: string;
    inputMessageContent?: InputMessageContent;
    lastName?: string;
    phoneNumber: string;
    replyMarkup?: InlineKeyboardMarkup;
    thumbnailHeight?: number;
    thumbnailUrl?: string;
    thumbnailWidth?: number;
    type: "contact";
    vcard?: string;
}

Properties

firstName: string

Contact's first name

id: string

Unique identifier for this result, 1-64 Bytes

inputMessageContent?: InputMessageContent

Content of the message to be sent instead of the contact

lastName?: string

Contact's last name

phoneNumber: string

Contact's phone number

replyMarkup?: InlineKeyboardMarkup

Inline keyboard attached to the message

thumbnailHeight?: number

Thumbnail height

thumbnailUrl?: string

Url of the thumbnail for the result

thumbnailWidth?: number

Thumbnail width

type: "contact"

Type of the result, must be contact

vcard?: string

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