BPT\types\inlineQueryResult

Extended by : BPT\types\types

This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:

Properties
Name Type Description Kind
type string Type of the result, must be voice normal
id string Unique identifier for this result, 1-64 bytes normal
audio_file_id string A valid file identifier for the audio file normal
caption string Optional. Caption, 0-1024 characters after entities parsing normal
parse_mode string Optional. Mode for parsing entities in the voice message caption. See formatting options for more details. normal
caption_entities messageEntity[] Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode normal
reply_markup BPT\types\inlineKeyboardMarkup Optional. Inline keyboard attached to the message normal
input_message_content BPT\types\inputMessageContent Optional. Content of the message to be sent instead of the voice recording normal
title string Recording title normal
document_file_id string A valid file identifier for the file normal
description string Optional. Short description of the result normal
gif_file_id string A valid file identifier for the GIF file normal
mpeg4_file_id string A valid file identifier for the MPEG4 file normal
photo_file_id string A valid file identifier of the photo normal
sticker_file_id string A valid file identifier of the sticker normal
video_file_id string A valid file identifier for the video file normal
voice_file_id string A valid file identifier for the voice message normal
url string Optional. URL of the result normal
hide_url bool Optional. Pass True if you don't want the URL to be shown in the message normal
thumbnail_url string URL of the thumbnail (JPEG only) for the video normal
thumbnail_width int Optional. Thumbnail width normal
thumbnail_height int Optional. Thumbnail height normal
audio_url string A valid URL for the audio file normal
performer string Optional. Performer normal
audio_duration int Optional. Audio duration in seconds normal
phone_number string Contact's phone number normal
first_name string Contact's first name normal
last_name string Optional. Contact's last name normal
vcard string Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes normal
game_short_name string Short name of the game normal
document_url string A valid URL for the file normal
mime_type string MIME type of the content of the video URL, “text/html” or “video/mp4” normal
gif_url string A valid URL for the GIF file. File size must not exceed 1MB normal
gif_width int Optional. Width of the GIF normal
gif_height int Optional. Height of the GIF normal
gif_duration int Optional. Duration of the GIF in seconds normal
thumbnail_mime_type string Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg” normal
latitude float Latitude of the venue location in degrees normal
longitude float Longitude of the venue location in degrees normal
horizontal_accuracy float Optional. The radius of uncertainty for the location, measured in meters; 0-1500 normal
live_period int Optional. Period in seconds for which the location can be updated, should be between 60 and 86400. normal
heading int Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. normal
proximity_alert_radius int Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified. normal
mpeg4_url string A valid URL for the MPEG4 file. File size must not exceed 1MB normal
mpeg4_width int Optional. Video width normal
mpeg4_height int Optional. Video height normal
mpeg4_duration int Optional. Video duration in seconds normal
photo_url string A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB normal
photo_width int Optional. Width of the photo normal
photo_height int Optional. Height of the photo normal
address string Address of the venue normal
foursquare_id string Optional. Foursquare identifier of the venue if known normal
foursquare_type string Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.) normal
google_place_id string Optional. Google Places identifier of the venue normal
google_place_type string Optional. Google Places type of the venue. (See supported types.) normal
video_url string A valid URL for the embedded video player or video file normal
video_width int Optional. Video width normal
video_height int Optional. Video height normal
video_duration int Optional. Video duration in seconds normal
voice_url string A valid URL for the voice recording normal
voice_duration int Optional. Recording duration in seconds normal