
    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                   .    e Zd Z	 ddddeeef   ddfdZy)	GetChatMenuButtonNselfzpyrogram.Clientchat_idreturnztypes.MenuButtonc                 n  K   |rY| j                  t        j                  j                  j	                  | j                  |       d{                d{   }n{| j                  t        j                  j                  j                  t        j                  j                                      d{   j                  j                  j                  }t        |t        j                  j                        rt        j                         S t        |t        j                  j                         rt        j"                         S t        |t        j                  j$                        r?t        j&                  |j(                  t        j*                  |j,                              S y7 f7 X7 w)at  Get the current value of 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``):
                Unique identifier (int) or username (str) of the target chat.
                If not specified, default bot's menu button will be returned.
        N)user_id)id)url)textweb_app)invoker   	functionsbotsGetBotMenuButtonresolve_peerusersGetFullUserr   InputUserSelf	full_userbot_infomenu_button
isinstanceBotMenuButtonCommandsMenuButtonCommandsBotMenuButtonDefaultMenuButtonDefaultBotMenuButtonMenuButtonWebAppr   
WebAppInfor   )r   r	   rs      ]/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/bots/get_chat_menu_button.pyget_chat_menu_buttonz&GetChatMenuButton.get_chat_menu_button   sA     kk""33"&"3"3G"<< 4  A {{##//yy..0 0   y++	  a889++--a778**,,a001))VV((  2! =s8   AF5F-F5F0AF56F37C7F50F53F5)N)__name__
__module____qualname__r   intstrr&        r%   r   r      s.     $(''sCx' 
'r-   r   )typingr   pyrogramr   r   r   r,   r-   r%   <module>r0      s   &    ( (r-   