B
    fd	                 @   s>   d dl mZ d dlZd dlmZ d dlmZ G dd dZdS )    )UnionN)raw)typesc               @   s(   e Zd Zddeeef ddddZdS )GetChatMenuButtonNzpyrogram.Clientztypes.MenuButton)selfchat_idreturnc                s   |r.|  tjjj| |I dH dI dH }n(|  tjjjtj	 dI dH j
jj}t|tjjrlt S t|tjjrt S t|tjjrtj|jtj|jddS dS )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)Zuser_id)id)url)textZweb_app)Zinvoker   Z	functionsZbotsZGetBotMenuButtonZresolve_peerZusersZGetFullUserr   ZInputUserSelfZ	full_userZbot_infoZmenu_button
isinstanceZBotMenuButtonCommandsZMenuButtonCommandsZBotMenuButtonDefaultZMenuButtonDefaultZBotMenuButtonZMenuButtonWebAppr   Z
WebAppInfor
   )r   r   r r   N/tmp/pip-unpacked-wheel-rcokkf2l/pyrogram/methods/bots/get_chat_menu_button.pyget_chat_menu_button   s     z&GetChatMenuButton.get_chat_menu_button)N)__name__
__module____qualname__r   intstrr   r   r   r   r   r      s   r   )typingr   Zpyrogramr   r   r   r   r   r   r   <module>   s   