Inline mode

InlineQueryResultContact

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

fields

fieldtyperequireddescription
typestringrequiredType of the result, must be contact
idstringrequiredUnique identifier for this result, 1-64 Bytes
phone_numberstringrequiredContact's phone number
first_namestringrequiredContact's first name
last_namestringoptionalOptional. Contact's last name
vcardstringoptionalOptional. Additional data about the contact in the form of a vCard, 0-2048 bytes
reply_markupInlineKeyboardMarkupoptionalOptional. Inline keyboard attached to the message
input_message_contentInputMessageContentoptionalOptional. Content of the message to be sent instead of the contact
thumbnail_urlstringoptionalOptional. Url of the thumbnail for the result
thumbnail_widthnumberoptionalOptional. Thumbnail width
thumbnail_heightnumberoptionalOptional. Thumbnail height

import

types.ts
import type { InlineQueryResultContact } from "@yaebal/types";

used by

types