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
| field | type | required | description |
|---|---|---|---|
type | string | required | Type of the result, must be contact |
id | string | required | Unique identifier for this result, 1-64 Bytes |
phone_number | string | required | Contact's phone number |
first_name | string | required | Contact's first name |
last_name | string | optional | Optional. Contact's last name |
vcard | string | optional | Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes |
reply_markup | InlineKeyboardMarkup | optional | Optional. Inline keyboard attached to the message |
input_message_content | InputMessageContent | optional | Optional. Content of the message to be sent instead of the contact |
thumbnail_url | string | optional | Optional. Url of the thumbnail for the result |
thumbnail_width | number | optional | Optional. Thumbnail width |
thumbnail_height | number | optional | Optional. Thumbnail height |
import
import type { InlineQueryResultContact } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#inlinequeryresultcontact