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: aiogram.types.base.String, first_name: Optional[aiogram.types.base.String] = None, last_name: Optional[aiogram.types.base.String] = None, vcard: Optional[aiogram.types.base.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: aiogram.types.base.Float, longitude: aiogram.types.base.Float, horizontal_accuracy: Optional[aiogram.types.base.Float] = None, live_period: Optional[aiogram.types.base.Integer] = None, heading: Optional[aiogram.types.base.Integer] = None, proximity_alert_radius: Optional[aiogram.types.base.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: aiogram.types.base.String, parse_mode: Optional[aiogram.types.base.String] = None, caption_entities: Optional[List[aiogram.types.message_entity.MessageEntity]] = None, disable_web_page_preview: Optional[aiogram.types.base.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: aiogram.types.base.Float, longitude: aiogram.types.base.Float, title: aiogram.types.base.String, address: aiogram.types.base.String, foursquare_id: Optional[aiogram.types.base.String] = None, foursquare_type: Optional[aiogram.types.base.String] = None, google_place_id: Optional[aiogram.types.base.String] = None, google_place_type: Optional[aiogram.types.base.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