StaticGramBot API

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.

Поля

typeString
Type of the result, must be contact
idString
Unique identifier for this result, 1-64 Bytes
Contact's phone number
Contact's first name
last_nameStringoptional
Contact's last name
vcardStringoptional
Additional data about the contact in the form of a vCard, 0-2048 bytes
Inline keyboard attached to the message
Content of the message to be sent instead of the contact
thumbnail_urlStringoptional
Url of the thumbnail for the result
thumbnail_widthIntegeroptional
Thumbnail width
thumbnail_heightIntegeroptional
Thumbnail height

Минимальный JSON

JSON
{
  "type": "private",
  "id": "...",
  "phone_number": "...",
  "first_name": "..."
}

Где используется

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top