U
    ;g	                     @   sJ   d dl Z d dl mZ d dl mZ d dl mZ ddlmZ G dd dZdS )	    N)raw)types)utils   )get_sessionc                   @   s"   e Zd ZddededddZdS )EditInlineReplyMarkupNzpyrogram.Clientztypes.InlineKeyboardMarkup)selfinline_message_idreply_markupreturnc                    sX   t |}|j}t| |I dH }|jtjjj||rB|	| I dH ndd| j
dI dH S )aR  Edit only the reply markup of inline messages sent via the bot (for inline bots).

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

        Parameters:
            inline_message_id (``str``):
                Identifier of the inline message.

            reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup`, *optional*):
                An InlineKeyboardMarkup object.

        Returns:
            ``bool``: On success, True is returned.

        Example:
            .. code-block:: python

                from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton

                # Bots only
                await app.edit_inline_reply_markup(
                    inline_message_id,
                    InlineKeyboardMarkup([[
                        InlineKeyboardButton("New button", callback_data="new_data")]]))
        N)idr
   )sleep_threshold)r   Zunpack_inline_message_iddc_idr   Zinvoker   Z	functionsmessagesZEditInlineBotMessagewriter   )r   r	   r
   unpackedr   session r   r/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/messages/edit_inline_reply_markup.pyedit_inline_reply_markup   s    
z.EditInlineReplyMarkup.edit_inline_reply_markup)N)__name__
__module____qualname__strboolr   r   r   r   r   r      s    r   )Zpyrogramr   r   r   Zinline_sessionr   r   r   r   r   r   <module>   s
   