InputMessageContent¶
-
class
aiogram.types.input_message_content.
InputMessageContent
(conf: Optional[Dict[str, Any]] = None, **kwargs: Any)[source]¶ Bases:
aiogram.types.base.TelegramObject
This object represents the content of a message to be sent as a result of an inline query.
Telegram clients currently support the following 4 types
https://core.telegram.org/bots/api#inputmessagecontent
Deserialize object
- Parameters
conf –
kwargs –
InputContactMessageContent¶
-
class
aiogram.types.input_message_content.
InputContactMessageContent
(phone_number: String, first_name: Optional[String] = None, last_name: Optional[String] = None, vcard: Optional[String] = None)[source]¶ Bases:
aiogram.types.input_message_content.InputMessageContent
Represents the content of a contact message to be sent as the result of an inline query.
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
https://core.telegram.org/bots/api#inputcontactmessagecontent
Deserialize object
- Parameters
conf –
kwargs –
InputLocationMessageContent¶
-
class
aiogram.types.input_message_content.
InputLocationMessageContent
(latitude: Float, longitude: Float, horizontal_accuracy: Optional[Float] = None, live_period: Optional[Integer] = None, heading: Optional[Integer] = None, proximity_alert_radius: Optional[Integer] = None)[source]¶ Bases:
aiogram.types.input_message_content.InputMessageContent
Represents the content of a location message to be sent as the result of an inline query.
https://core.telegram.org/bots/api#inputlocationmessagecontent
Deserialize object
- Parameters
conf –
kwargs –
InputTextMessageContent¶
-
class
aiogram.types.input_message_content.
InputTextMessageContent
(message_text: String, parse_mode: Optional[String] = None, caption_entities: Optional[List[aiogram.types.message_entity.MessageEntity]] = None, disable_web_page_preview: Optional[Boolean] = None)[source]¶ Bases:
aiogram.types.input_message_content.InputMessageContent
Represents the content of a text message to be sent as the result of an inline query.
https://core.telegram.org/bots/api#inputtextmessagecontent
Deserialize object
- Parameters
conf –
kwargs –
InputVenueMessageContent¶
-
class
aiogram.types.input_message_content.
InputVenueMessageContent
(latitude: Float, longitude: Float, title: String, address: String, foursquare_id: Optional[String] = None, foursquare_type: Optional[String] = None, google_place_id: Optional[String] = None, google_place_type: Optional[String] = None)[source]¶ Bases:
aiogram.types.input_message_content.InputMessageContent
Represents the content of a venue message to be sent as the result of an inline query.
Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.
https://core.telegram.org/bots/api#inputvenuemessagecontent
Deserialize object
- Parameters
conf –
kwargs –