
    i'                         S SK r S SKJr  S SKJrJrJr  S SKrS SKJrJrJ	r	J
r
  \ R                  " \5      r " S S5      rg)    N)datetime)ListOptionalUnion)enumsrawtypesutilsc            7           \ rS rSr                      S'SSS\\\4   S\S\S\S	\S
\S\S\S\S\S\SSSSS\	S\S\S\S\S\S   S\S\\\4   S\S\
S   S \S!   S"\S#S$46S% jjrS&rg)(SendLocation   Nselfzpyrogram.Clientchat_idlatitude	longitudehorizontal_accuracylive_periodheadingproximity_alert_radiusdisable_notificationmessage_thread_iddirect_messages_topic_id	effect_idreply_parametersztypes.ReplyParameterssuggested_post_parametersztypes.SuggestedPostParametersschedule_dateprotect_contentbusiness_connection_idallow_paid_broadcastpaid_message_star_countreply_markup)ztypes.InlineKeyboardMarkupztypes.ReplyKeyboardMarkupztypes.ReplyKeyboardRemoveztypes.ForceReplyreply_to_message_idreply_to_chat_id
quote_text
parse_modezenums.ParseModequote_entitiesztypes.MessageEntityquote_offsetreturnztypes.Messagec                   #    [        USLUSLUSLUSLUSLUSL45      (       a  Ub  [        R                  S5        Ub  [        R                  S5        Ub  [        R                  S5        Ub  [        R                  S5        Ub  [        R                  S5        Ub  [        R                  S5        [        R                  " UUUUUUS9nUb>  [
        R                  R                  [
        R                  R                  UUUS	9UUUS
9nO:[
        R                  R                  [
        R                  R                  UUUS	9S9nU R                  [
        R                  R                  R                  U R                  U5      I Sh  vN USU=(       d    S[        R                  " U UU	U
5      I Sh  vN U R!                  5       [        R"                  " U5      UUUU(       a  UR%                  U 5      I Sh  vN OSUU(       a  UR%                  5       OSS9US9I Sh  vN n[        R&                  " U US9I Sh  vN nU(       a  US   $ S$  N N N[ N5 N7f)a  Send points on the map.

.. include:: /_includes/usable-by/users-bots.rst

Parameters:
    chat_id (``int`` | ``str``):
        Unique identifier (int) or username (str) of the target chat.
        For your personal cloud (Saved Messages) you can simply use "me" or "self".
        For a contact that exists in your Telegram address book you can use his phone number (str).

    latitude (``float``):
        Latitude of the location.

    longitude (``float``):
        Longitude of the location.

    horizontal_accuracy (``float``, *optional*):
        The radius of uncertainty for the location, measured in meters, 0-1500.

    live_period (``int``, *optional*):
        For live locations, a period for which the location can be updated, in seconds.
        Must be between 60 and 86400 for a temporary live location, 0x7FFFFFFF for permanent live location.

    heading (``int``, *optional*):
        For live locations, a direction in which the user is moving, in degrees.
        Must be between 1 and 360 if specified.

    proximity_alert_radius (``int``, *optional*):
        For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters.
        Must be between 1 and 100000 if specified.
        Can't be enabled in channels and Saved Messages.

    disable_notification (``bool``, *optional*):
        Sends the message silently.
        Users will receive a notification with no sound.

    message_thread_id (``int``, *optional*):
        Unique identifier for the target message thread (topic) of the forum.
        For forums only.

    direct_messages_topic_id (``int``, *optional*):
        Unique identifier of the topic in a channel direct messages chat administered by the current user.
        For directs only only.

    effect_id (``int``, *optional*):
        Unique identifier of the message effect.
        For private chats only.

    reply_parameters (:obj:`~pyrogram.types.ReplyParameters`, *optional*):
        Describes reply parameters for the message that is being sent.

    suggested_post_parameters (:obj:`~pyrogram.types.SuggestedPostParameters`, *optional*):
        Information about the suggested post.

    schedule_date (:py:obj:`~datetime.datetime`, *optional*):
        Date when the message will be automatically sent.

    protect_content (``bool``, *optional*):
        Protects the contents of the sent message from forwarding and saving.

    business_connection_id (``str``, *optional*):
        Unique identifier of the business connection on behalf of which the message will be sent.

    allow_paid_broadcast (``bool``, *optional*):
        If True, you will be allowed to send up to 1000 messages per second.
        Ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message.
        The relevant Stars will be withdrawn from the bot's balance.
        For bots only.

    paid_message_star_count (``int``, *optional*):
        The number of Telegram Stars the user agreed to pay to send the messages.

    reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardMarkup` | :obj:`~pyrogram.types.ReplyKeyboardRemove` | :obj:`~pyrogram.types.ForceReply`, *optional*):
        Additional interface options. An object for an inline keyboard, custom reply keyboard,
        instructions to remove reply keyboard or to force a reply from the user.

Returns:
    :obj:`~pyrogram.types.Message`: On success, the sent location message is returned.

Example:
    .. code-block:: python

        await app.send_location("me", latitude, longitude)
Nzj`reply_to_message_id` is deprecated and will be removed in future updates. Use `reply_parameters` instead.zg`reply_to_chat_id` is deprecated and will be removed in future updates. Use `reply_parameters` instead.za`quote_text` is deprecated and will be removed in future updates. Use `reply_parameters` instead.za`parse_mode` is deprecated and will be removed in future updates. Use `reply_parameters` instead.ze`quote_entities` is deprecated and will be removed in future updates. Use `reply_parameters` instead.zc`quote_offset` is deprecated and will be removed in future updates. Use `reply_parameters` instead.)
message_idr   quotequote_parse_moder&   quote_position)latlongaccuracy_radius)	geo_pointr   periodproximity_notification_radius)r1    )peermediamessagesilentreply_to	random_idr   
noforwardsallow_paid_floodskipallow_paid_starsr!   effectsuggested_post)r   )clientmessagesr   )anylogwarningr	   ReplyParametersr   InputMediaGeoLiveInputGeoPointInputMediaGeoPointinvoke	functionsrA   	SendMediaresolve_peerr
   get_reply_tornd_iddatetime_to_timestampwriteparse_messages)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r6   rrA   s                                T/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/messages/send_location.pysend_locationSendLocation.send_location   s    l #4/ ,$&$&d*D(	
 	
 #. A  +} %w %w ){ 'y  %44.( !+-+  "II//))11 "$7 2 
  ".D 0 	E II00))11 "$7 2  1 E ++MM"",,,,W55+3t$11$%,	   ++-#99-H*%9!8?K<#5#5d#;;;QU D]8>>@cg% - ( $:+  
 
0 --TAFF&x{0D01 6 <#
0 Gs[   F	II+I7I8AI=I >'I%I&IIIIIII )NNNNNNNNNNNNNNNNNNNNNN)__name__
__module____qualname____firstlineno__r   intstrfloatboolr   r   r   rT   __static_attributes__rV       rS   r   r      s    &*&*%)!%(,48EI"& $&*%)'+ #',0266: AU1U1sCxU1 U1 	U1
 #U1 U1 U1 !$U1 #U1 U1 #&U1 U1 2U1 $CU1  U1  !U1" !$#U1$ #%U1& "%'U1( 
)U16 !7U18  S/9U1: ;U1< ./=U1> 23?U1@ AU1B 
CU1 U1r`   r   )loggingr   typingr   r   r   pyrogramr   r   r	   r
   	getLoggerrW   rC   r   rV   r`   rS   <module>re      s8   &   ( (  - -!V1 V1r`   