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