telegram.inlinequeryresultlocation module¶
This module contains the classes that represent Telegram InlineQueryResultLocation
-
class
telegram.inlinequeryresultlocation.InlineQueryResultLocation(id, latitude, longitude, title, reply_markup=None, input_message_content=None, thumb_url=None, thumb_width=None, thumb_height=None, **kwargs)¶ Bases:
telegram.inlinequeryresult.InlineQueryResultRepresents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.
-
latitude¶ float – Location latitude in degrees.
-
longitude¶ float – Location longitude in degrees.
-
title¶ str – Location title.
-
reply_markup¶ Optional[
telegram.InlineKeyboardMarkup] – Inline keyboard attached to the message.
-
input_message_content¶ Optional[
telegram.InputMessageContent] – Content of the message to be sent instead of the location.
-
thumb_url¶ Optional[str] – Url of the thumbnail for the result.
-
thumb_width¶ Optional[int] – Thumbnail width.
-
thumb_height¶ Optional[int] – Thumbnail height.
Parameters: - latitude (float) – Location latitude in degrees.
- longitude (float) – Location longitude in degrees.
- title (str) – Location title.
- reply_markup (Optional[
telegram.InlineKeyboardMarkup]) – Inline keyboard attached to the message. - input_message_content (Optional[
telegram.InputMessageContent]) – Content of the message to be sent instead of the location. - thumb_url (Optional[str]) – Url of the thumbnail for the result.
- thumb_width (Optional[int]) – Thumbnail width.
- thumb_height (Optional[int]) – Thumbnail height.
- **kwargs (dict) – Arbitrary keyword arguments.
-
static
de_json(data, bot)¶
-