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)[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)[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.

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

https://core.telegram.org/bots/api#inputlocationmessagecontent

Deserialize object

Parameters
  • conf

  • kwargs

InputTextMessageContent

class aiogram.types.input_message_content.InputTextMessageContent(message_text: Optional[String] = None, parse_mode: Optional[String] = 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: Optional[Float] = None, longitude: Optional[Float] = None, title: Optional[String] = None, address: Optional[String] = None, foursquare_id: 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