User.listen()¶
- User.listen()[source]¶
Bound method listen of
User
.Use as a shortcut for:
client.listen(user_id=user.id)
Example
user.listen()
- Parameters:
filters (
Optional[hydrogram.Filter]
) – Same ashydrogram.Client.listen()
.listener_type (
ListenerTypes
) – Same ashydrogram.Client.listen()
.timeout (
Optional[int]
) – Same ashydrogram.Client.listen()
.unallowed_click_alert (
bool
) – Same ashydrogram.Client.listen()
.chat_id (
Union[int, str], List[Union[int, str]]
) – Same ashydrogram.Client.listen()
.message_id (
Union[int, List[int]]
) – Same ashydrogram.Client.listen()
.inline_message_id (
Union[str, List[str]]
) – Same ashydrogram.Client.listen()
.
- Returns:
Union[Message, CallbackQuery]
– The Message or CallbackQuery that fulfilled the listener.