Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy/types.ts>InlineQueryResultContact

The Telegram Bot Framework.
Very Popular
Go to Latest
interface InlineQueryResultContact
import { type InlineQueryResultContact } from "https://deno.land/x/grammy@v1.10.1/types.ts";

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.

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

Properties

type: "contact"

Type of the result, must be contact

id: string

Unique identifier for this result, 1-64 Bytes

phone_number: string

Contact's phone number

first_name: string

Contact's first name

optional
last_name: string

Contact's last name

optional
vcard: string

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

optional
reply_markup: InlineKeyboardMarkup

Inline keyboard attached to the message

optional
input_message_content: InputMessageContent

Content of the message to be sent instead of the contact

optional
thumb_url: string

Url of the thumbnail for the result

optional
thumb_width: number

Thumbnail width

optional
thumb_height: number

Thumbnail height