
    N[i                      D    d dl mZ d dlZd dlmZ d dlmZ  G d d      Zy)    )UnionN)raw)typesc            	       4    e Zd Z	 	 d	dddeeef   dddefdZy)
SetChatMenuButtonNselfzpyrogram.Clientchat_idmenu_buttonztypes.MenuButtonreturnc                 ^  K   | j                  t        j                  j                  j	                  | j                  |xs d       d{   |r|j                  |        d{   n*t        j                         j                  |        d{                d{    y7 [7 C7 7 w)a(  Change the bot's menu button in a private chat, or the default menu button.

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

        Parameters:
            chat_id (``int`` | ``str``, *optional*):
                Unique identifier (int) or username (str) of the target chat.
                If not specified, default bot's menu button will be changed.

            menu_button (:obj:`~pyrogram.types.MenuButton`, *optional*):
                The new bot's menu button.
                Defaults to :obj:`~pyrogram.types.MenuButtonDefault`.
        meN)user_idbuttonT)	invoker   	functionsbotsSetBotMenuButtonresolve_peerwriter   MenuButtonDefault)r   r	   r
   s      ]/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/bots/set_chat_menu_button.pyset_chat_menu_buttonz&SetChatMenuButton.set_chat_menu_button   s     & kkMM//"//4@@7B;,,T222 % 7 7 9 ? ? EE	 0 
 	
 	
  A2E	
sH   AB-	B%
B-#B'$*B-B)B-B+ B-'B-)B-+B-)NN)__name__
__module____qualname__r   intstrboolr        r   r   r      s;     $(*.sCx ( 
	r    r   )typingr   pyrogramr   r   r   r   r    r   <module>r#      s   &     r    