
    i                     l    S SK r S SKJr  S SKrS SKJrJrJr  \ R                  " \5      r	 " S S5      r
g)    N)Union)rawtypesutilsc                       \ rS rSr         SSSS\\\4   S\S\S\S	\S
SS\S\S\S   S\S\\\4   SS4S jjrSr	g)SendGame   Nselfzpyrogram.Clientchat_idgame_short_namedisable_notificationmessage_thread_id	effect_idreply_parametersztypes.ReplyParametersprotect_contentallow_paid_broadcastreply_markup)ztypes.InlineKeyboardMarkupztypes.ReplyKeyboardMarkupztypes.ReplyKeyboardRemoveztypes.ForceReplyreply_to_message_idreply_to_chat_idreturnztypes.Messagec                   #    U
c  UbE  U
b  [         R                  S5        Ub  [         R                  S5        [        R                  " UU
S9nU R	                  [
        R                  R                  R                  U R                  U5      I Sh  vN [
        R                  R                  [
        R                  R                  [
        R                  R                  5       US9S9SU=(       d    S[        R                  " U UU5      I Sh  vN U R                  5       UUU	(       a  U	R!                  U 5      I Sh  vN OSUS9
5      I Sh  vN n[        R"                  " XS	9I Sh  vN nU(       a  US
   $ S$  N Nq NC N4 N7f)u}  Send a game.

.. include:: /_includes/usable-by/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).

    game_short_name (``str``):
        Short name of the game, serves as the unique identifier for the game. Set up your games via Botfather.

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

    message_thread_id (``int``, *optional*):
        Unique identifier of a message thread to which the message belongs.
        For supergroups 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.

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

    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.

    reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup`, *optional*):
        An object for an inline keyboard. If empty, one ‘Play game_title’ button will be shown automatically.
        If not empty, the first button must launch the game.

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

Example:
    .. code-block:: python

        await app.send_game(chat_id, "gamename")
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.)r   
message_id)bot_id
short_name)id )
peermediamessagesilentreply_to	random_id
noforwardsallow_paid_floodskipr   effect)clientmessagesr   )logwarningr   ReplyParametersinvoker   	functionsr'   	SendMediaresolve_peerInputMediaGameInputGameShortNameInputUserSelfr   get_reply_tornd_idwriteparse_messages)r
   r   r   r   r   r   r   r   r   r   r   r   rr'   s                 L/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/bots/send_game.py	send_gameSendGame.send_game   sv    J *.>.J". A  +}  %44(. 
 ++MM"",,,,W55ii..yy33"yy668#2 4  /  +3t$11$%  
 ++-*%9?K<#5#5d#;;;QU ' - 
 
0 --TFF&x{0D01 6 <'
0 Gs[   BFE>A=FF /F>F?FFF+F,F FFFF )	NNNNNNNNN)
__name__
__module____qualname____firstlineno__r   intstrboolr8   __static_attributes__r:       r7   r   r      s    
 &*!%48 $%) #',0%o1o1sCxo1 o1 #	o1
 o1 o1 2o1 o1 #o1  
o1" !#o1$  S/%o1& 
'o1 o1rC   r   )loggingtypingr   pyrogramr   r   r   	getLoggerr;   r(   r   r:   rC   r7   <module>rH      s2   &    & &!p1 p1rC   