Chat.ask()¶
- Chat.ask()¶
Bound method ask of
Chat.Use as a shortcut for:
client.send_message(chat_id, "What is your name?") client.wait_for_message(chat_id)- Parameters:¶
Example
chat.ask("What is your name?")- Returns:¶
:obj:`~pyrogram.types.Message` (On success, the reply message is returned.)
- Raises:¶
RPCError – In case of a Telegram RPC error.:
asyncio.TimeoutError – In case reply not received within the timeout.: