BPT\types\inputMessageContent

Extended by : BPT\types\types

This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types:

Properties
Name Type Description Kind
message_text string Text of the message to be sent, 1-4096 characters normal
parse_mode string Optional. Mode for parsing entities in the message text. See formatting options for more details. normal
entities messageEntity[] Optional. List of special entities that appear in message text, which can be specified instead of parse_mode normal
disable_web_page_preview bool Optional. Disables link previews for links in the sent message normal
latitude float Latitude of the venue in degrees normal
longitude float Longitude of the venue 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
title string Product name, 1-32 characters 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
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
description string Product description, 1-255 characters normal
payload string Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. normal
provider_token string Payment provider token, obtained via @BotFather normal
currency string Three-letter ISO 4217 currency code, see more on currencies normal
prices labeledPrice[] Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.) normal
max_tip_amount int Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0 normal
suggested_tip_amounts int[] Optional. A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount. normal
provider_data string Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider. normal
photo_url string Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. normal
photo_size int Optional. Photo size in bytes normal
photo_width int Optional. Photo width normal
photo_height int Optional. Photo height normal
need_name bool Optional. Pass True if you require the user's full name to complete the order normal
need_phone_number bool Optional. Pass True if you require the user's phone number to complete the order normal
need_email bool Optional. Pass True if you require the user's email address to complete the order normal
need_shipping_address bool Optional. Pass True if you require the user's shipping address to complete the order normal
send_phone_number_to_provider bool Optional. Pass True if the user's phone number should be sent to provider normal
send_email_to_provider bool Optional. Pass True if the user's email address should be sent to provider normal
is_flexible bool Optional. Pass True if the final price depends on the shipping method normal