
    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)(	SendVenue   Nselfzpyrogram.Clientchat_idlatitude	longitudetitleaddressfoursquare_idfoursquare_type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                 F  #    [        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 R                  [        R                  R                  R                  U R                  U5      I Sh  vN [        R                  R                  [        R                  R                  UUS	9UUS
UUS9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$  GN N N\ N6 N7f)a  Send information about a venue.

.. 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 venue.

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

    title (``str``):
        Name of the venue.

    address (``str``):
        Address of the venue.

    foursquare_id (``str``, *optional*):
        Foursquare identifier of the venue.

    foursquare_type (``str``, *optional*):
        Foursquare type of the venue, if known.
        (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)

    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 venue message is returned.

Example:
    .. code-block:: python

        await app.send_venue(
            "me", latitude, longitude,
            "Venue title", "Venue address")
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 )	geo_pointr   r   providervenue_id
venue_type)peermediamessagesilentreply_to	random_idr   
noforwardsallow_paid_floodskipallow_paid_starsr!   effectsuggested_post)r   )clientmessagesr   )anylogwarningr	   ReplyParametersinvoker   	functionsrA   	SendMediaresolve_peerInputMediaVenueInputGeoPointr
   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'   rrA   s                               Q/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/messages/send_venue.py
send_venueSendVenue.send_venue   sO    j #4/ ,$&$&d*D(	
 	
 #. A  +} %w %w ){ 'y  %44.( !+-+  ++MM"",,,,W55ii//!ii55$& 6   #*. 0 
 +3t$11$%,	   ++-#99-H*%9!8?K<#5#5d#;;;QU D]8>>@cg9 - < $:?   
  
D --TAFF&x{0D0E 6 <7 
D Gs\   DH!HA'H!8H9AH!>H ?'H!&H'H!HH!H!H!H!H! )r0   r0   NNNNNNNNNNNNNNNNNN)__name__
__module____qualname____firstlineno__r   intstrfloatboolr   r   r   rS   __static_attributes__rU       rR   r   r      s     !%)!%(,48EI"& $&*%)'+ #',0266: AJ1J1sCxJ1 J1 	J1
 J1 J1 J1 J1 #J1 J1 #&J1 J1 2J1 $CJ1  J1  !J1" !$#J1$ #%J1& "%'J1( 
)J16 !7J18  S/9J1: ;J1< ./=J1> 23?J1@ AJ1B 
CJ1 J1r_   r   )loggingr   typingr   r   r   pyrogramr   r   r	   r
   	getLoggerrV   rC   r   rU   r_   rR   <module>rd      s8   &   ( (  - -!K1 K1r_   