Message.wait_for_click()¶
- Message.wait_for_click()¶
Waits for a callback query to be clicked on the message.
- Parameters:¶
from_user_id (``int`` | ``str`` | Iterable of ``int`` | Iterable of ``str``, *optional*) – The user ID to listen for.
timeout (``int``, *optional*) – The maximum amount of time to wait for a message.
filters (:obj:`~pyrogram.filters`, *optional*) – A filter to check the incoming message against.
alert (``str`` | ``bool``) – The alert to show when the button is clicked by users that are not allowed in from_user_id.
- Returns:¶
:obj:`~pyrogram.types.CallbackQuery` (The callback query that was clicked.)