L izdZddlZddlmZmZmZddlmZddl m Z ddl m Z ddl mZddlmZmZGd d e Zy) zUThis module contains the classes that represent Telegram InputLocationMessageContent.N)FinalOptionalUnion) constants)InputMessageContent) to_timedelta)get_timedelta_value)JSONDict TimePeriodc^eZdZUdZdZ ddddededeedeed eed eed ee ffd Z e d ee ee jffdZej"j$Zeeed< ej"j*Zeeed< ej"j,Zeeed< ej"j.Zeeed< ej"j0Zeeed< ej"j2Zeeed< ej"j4Zeeed<xZS)InputLocationMessageContenta$ Represents the content of a location message to be sent as the result of an inline query. Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their :attr:`latitude` and :attr:`longitude` are equal. Args: latitude (:obj:`float`): Latitude of the location in degrees. longitude (:obj:`float`): Longitude of the location in degrees. horizontal_accuracy (:obj:`float`, optional): The radius of uncertainty for the location, measured in meters; 0- :tg-const:`telegram.InputLocationMessageContent.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.InputLocationMessageContent.MIN_LIVE_PERIOD` and :tg-const:`telegram.InputLocationMessageContent.MAX_LIVE_PERIOD` or :tg-const:`telegram.constants.LocationLimit.LIVE_PERIOD_FOREVER` for live locations that can be edited indefinitely. .. 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.InputLocationMessageContent.MIN_HEADING` and :tg-const:`telegram.InputLocationMessageContent.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.InputLocationMessageContent.MIN_PROXIMITY_ALERT_RADIUS` and :tg-const:`telegram.InputLocationMessageContent.MAX_PROXIMITY_ALERT_RADIUS` if specified. Attributes: latitude (:obj:`float`): Latitude of the location in degrees. longitude (:obj:`float`): Longitude of the location in degrees. horizontal_accuracy (:obj:`float`): Optional. The radius of uncertainty for the location, measured in meters; 0- :tg-const:`telegram.InputLocationMessageContent.HORIZONTAL_ACCURACY`. live_period (:obj:`int` | :class:`datetime.timedelta`): Optional. Period in seconds for which the location can be updated, should be between :tg-const:`telegram.InputLocationMessageContent.MIN_LIVE_PERIOD` and :tg-const:`telegram.InputLocationMessageContent.MAX_LIVE_PERIOD`. .. 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.InputLocationMessageContent.MIN_HEADING` and :tg-const:`telegram.InputLocationMessageContent.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.InputLocationMessageContent.MIN_PROXIMITY_ALERT_RADIUS` and :tg-const:`telegram.InputLocationMessageContent.MAX_PROXIMITY_ALERT_RADIUS` if specified. ) _live_periodheadinghorizontal_accuracylatitude longitudeproximity_alert_radiusN api_kwargsrr live_periodrrrrc*t|||j5||_||_t ||_||_||_|r t|nd|_ |j|jf|_ dddy#1swYyxYw)Nr) super__init__ _unfrozenrrrrrrintr _id_attrs) selfrrrrrrr __class__s r/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_inline/inputlocationmessagecontent.pyrz$InputLocationMessageContent.__init__cs J/ ^^  =#+DM$-DN:Fk9RD 8KD $*1DL/E*+4  '#mmT^^&?@OO'0&=&=&Q&QsQ(55AAKsA(55AAKsA#,"9"9"I"IOU3ZI#,"9"9"I"IOU3ZI.7-D-D-_-_c _.7-D-D-_-_c _r#r )r.datetimer2typingrrrtelegramr$telegram._inline.inputmessagecontentrtelegram._utils.argumentparsingrtelegram._utils.datetimer telegram._utils.typesr r r r#rr?s2&\))D886E"5Er#