InputMessageContent¶
-
class
aiogram.types.input_message_content.InputMessageContent(conf=None, **kwargs)[source]¶ Bases:
aiogram.types.base.TelegramObjectThis 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.InputMessageContentRepresents 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
InputLocationMessageContent¶
-
class
aiogram.types.input_message_content.InputLocationMessageContent(latitude: Float, longitude: Float)[source]¶ Bases:
aiogram.types.input_message_content.InputMessageContentRepresents 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
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.InputMessageContentRepresents the content of a text message to be sent as the result of an inline query.
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.InputMessageContentRepresents 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.