
    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            0           \ 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\\\4   S\S\S\	S   S\
S   S\S\	S    4.S! jjrS"rg)$SendDice   Nselfzpyrogram.Clientchat_idemoji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reply_to_story_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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        Ub  [        R                  S5        [        R                  " U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                  US
9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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)u\  Send a dice with a random value from 1 to 6.

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

    emoji (``str``, *optional*):
        Emoji on which the dice throw animation is based.
        Currently, must be one of "🎲", "🎯", "🏀", "⚽", "🎳", or "🎰".
        Dice can have values 1-6 for "🎲", "🎯" and "🎳", values 1-5 for "🏀" and "⚽", and
        values 1-64 for "🎰".
        Defaults to "🎲".

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

Example:
    .. code-block:: python

        # Send a dice
        await app.send_dice(chat_id)

        # Send a dart
        await app.send_dice(chat_id, "🎯")

        # Send a basketball
        await app.send_dice(chat_id, "🏀")
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.zh`reply_to_story_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   story_idquotequote_parse_moder"   quote_position)emoticon )peermediasilentreply_to	random_idr   
noforwardsallow_paid_floodskipallow_paid_starsr   messageeffectsuggested_post)r   )clientmessagesr   )anylogwarningr	   ReplyParametersinvoker   	functionsr9   	SendMediaresolve_peerInputMediaDicer
   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#   rr9   s                           P/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/messages/send_dice.py	send_diceSendDice.send_dice   s<    T #4/ ,!-$&$&d*D(

 

 #. A  +} !,~ %w %w ){ 'y  %44.(* !+-+  ++MM"",,,,W55ii...>+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\   D*H,H-AH2H3AH8H9(H!H"H>H?HHHHH )u   🎲NNNNNNNNNNNNNNNNNNN)__name__
__module____qualname____firstlineno__r   intstrboolr   r   r   rJ   __static_attributes__rL       rI   r   r      ss    %)!%(,48EI"& $&*%)'+ #',0!%266: 9|1|1sCx|1 |1 #	|1
 |1 #&|1 |1 2|1 $C|1  |1 |1 !$|1 #|1 "%|1 
|1, !-|1.  S//|10 1|12 3|14 ./5|16 237|18 9|1: 
/	";|1 |1rU   r   )loggingr   typingr   r   r   pyrogramr   r   r	   r
   	getLoggerrM   r;   r   rL   rU   rI   <module>rZ      s8   &   ( (  - -!}1 }1rU   