L i3'dZddlZddlmZmZmZmZddlm Z ddl m Z ddl m Z ddlmZddlmZdd lmZmZerdd lmZGd d e Zy) zSThis module contains the classes that represent Telegram InlineQueryResultLocation.N) TYPE_CHECKINGFinalOptionalUnion) constants)InlineKeyboardMarkup)InlineQueryResult) to_timedelta)get_timedelta_value)JSONDict TimePeriod)InputMessageContentceZdZUdZdZ ddddedededed eed ee d ed d eedee dee deedee dee dee ffdZ e deee ej ffdZej&j(Zee ed< ej&j.Zee ed< ej&j0Zee ed< ej&j2Zee ed< ej&j4Zee ed< ej&j6Zee ed< ej&j8Zee ed<xZS)InlineQueryResultLocationa Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use :attr:`input_message_content` to send a message with the specified content instead of the location. .. versionchanged:: 20.5 |removed_thumb_wildcard_note| Args: id (:obj:`str`): Unique identifier for this result, :tg-const:`telegram.InlineQueryResult.MIN_ID_LENGTH`- :tg-const:`telegram.InlineQueryResult.MAX_ID_LENGTH` Bytes. latitude (:obj:`float`): Location latitude in degrees. longitude (:obj:`float`): Location longitude in degrees. title (:obj:`str`): Location title. horizontal_accuracy (:obj:`float`, optional): The radius of uncertainty for the location, measured in meters; 0- :tg-const:`telegram.InlineQueryResultLocation.HORIZONTAL_ACCURACY`. live_period (:obj:`int` | :class:`datetime.timedelta`, optional): Period in seconds for which the location will be updated, should be between :tg-const:`telegram.InlineQueryResultLocation.MIN_LIVE_PERIOD` and :tg-const:`telegram.InlineQueryResultLocation.MAX_LIVE_PERIOD`. .. versionchanged:: v22.2 |time-period-input| heading (:obj:`int`, optional): For live locations, a direction in which the user is moving, in degrees. Must be between :tg-const:`telegram.InlineQueryResultLocation.MIN_HEADING` and :tg-const:`telegram.InlineQueryResultLocation.MAX_HEADING` if specified. proximity_alert_radius (:obj:`int`, optional): For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between :tg-const:`telegram.InlineQueryResultLocation.MIN_PROXIMITY_ALERT_RADIUS` and :tg-const:`telegram.InlineQueryResultLocation.MAX_PROXIMITY_ALERT_RADIUS` if specified. reply_markup (:class:`telegram.InlineKeyboardMarkup`, optional): Inline keyboard attached to the message. input_message_content (:class:`telegram.InputMessageContent`, optional): Content of the message to be sent instead of the location. thumbnail_url (:obj:`str`, optional): Url of the thumbnail for the result. .. versionadded:: 20.2 thumbnail_width (:obj:`int`, optional): Thumbnail width. .. versionadded:: 20.2 thumbnail_height (:obj:`int`, optional): Thumbnail height. .. versionadded:: 20.2 Attributes: type (:obj:`str`): :tg-const:`telegram.constants.InlineQueryResultType.LOCATION`. id (:obj:`str`): Unique identifier for this result, :tg-const:`telegram.InlineQueryResult.MIN_ID_LENGTH`- :tg-const:`telegram.InlineQueryResult.MAX_ID_LENGTH` Bytes. latitude (:obj:`float`): Location latitude in degrees. longitude (:obj:`float`): Location longitude in degrees. title (:obj:`str`): Location title. horizontal_accuracy (:obj:`float`): Optional. The radius of uncertainty for the location, measured in meters; 0- :tg-const:`telegram.InlineQueryResultLocation.HORIZONTAL_ACCURACY`. live_period (:obj:`int` | :class:`datetime.timedelta`): Optional. Period in seconds for which the location will be updated, should be between :tg-const:`telegram.InlineQueryResultLocation.MIN_LIVE_PERIOD` and :tg-const:`telegram.InlineQueryResultLocation.MAX_LIVE_PERIOD` or :tg-const:`telegram.constants.LocationLimit.LIVE_PERIOD_FOREVER` for live locations that can be edited indefinitely. .. deprecated:: v22.2 |time-period-int-deprecated| heading (:obj:`int`): Optional. For live locations, a direction in which the user is moving, in degrees. Must be between :tg-const:`telegram.InlineQueryResultLocation.MIN_HEADING` and :tg-const:`telegram.InlineQueryResultLocation.MAX_HEADING` if specified. proximity_alert_radius (:obj:`int`): Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between :tg-const:`telegram.InlineQueryResultLocation.MIN_PROXIMITY_ALERT_RADIUS` and :tg-const:`telegram.InlineQueryResultLocation.MAX_PROXIMITY_ALERT_RADIUS` if specified. reply_markup (:class:`telegram.InlineKeyboardMarkup`): Optional. Inline keyboard attached to the message. input_message_content (:class:`telegram.InputMessageContent`): Optional. Content of the message to be sent instead of the location. thumbnail_url (:obj:`str`): Optional. Url of the thumbnail for the result. .. versionadded:: 20.2 thumbnail_width (:obj:`int`): Optional. Thumbnail width. .. versionadded:: 20.2 thumbnail_height (:obj:`int`): Optional. Thumbnail height. .. versionadded:: 20.2 ) _live_periodheadinghorizontal_accuracyinput_message_contentlatitude longitudeproximity_alert_radius reply_markupthumbnail_height thumbnail_urlthumbnail_widthtitleN api_kwargsidrrr live_periodrrrrrrrrrrcxt|tjj|||j 5||_||_||_t||_ ||_ ||_ | |_ | |_| |_||_| |_| r t%| nd|_dddy#1swYyxYw)Nr)super__init__rInlineQueryResultTypeLOCATION _unfrozenrrrr rrrrrrrrintr)selfrrrrr rrrrrrrrr __class__s p/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_inline/inlinequeryresultlocation.pyr#z"InlineQueryResultLocation.__init__s& 88AA2R\] ^^  #+DM$-DN#DJ:Fk9RD @LD H]D &0=D 2AD 3CD !8KD $*1DL/E*+4  '   s A+B00B9returnc0t|jdS)Nr ) attribute)r r)r(s r*r z%InlineQueryResultLocation.live_periods"4#4#4 NNHORIZONTAL_ACCURACY MIN_HEADING MAX_HEADINGMIN_LIVE_PERIODMAX_LIVE_PERIODMIN_PROXIMITY_ALERT_RADIUSMAX_PROXIMITY_ALERT_RADIUS) NNNNNNNNN)__name__ __module__ __qualname____doc__ __slots__strfloatrr rr'r r#propertyrdtm timedeltar r LocationLimitr/r__annotations__r0r1r2r3r4r5 __classcell__)r)s@r*rr#s[z I*-17;AE/3!%04'+)-*.$ *.!$ $$ $  $ j) $34$ ((=>$&e_$#$!) $ }$"#$#3-$ X&!$LOXeC,>&?@OO'0&=&=&Q&QsQ(55AAKsA(55AAKsA#,"9"9"I"IOU3ZI#,"9"9"I"IOU3ZI.7-D-D-_-_c _.7-D-D-_-_c _r.r)r9datetimer>typingrrrrtelegramr%telegram._inline.inlinekeyboardmarkupr"telegram._inline.inlinequeryresultr telegram._utils.argumentparsingr telegram._utils.datetimer telegram._utils.typesr r rrr.r*rLs;&Z88F@886,y 1yr.