User.listen()¶
- User.listen()¶
Bound method listen of
User
.Use as a shortcut for:
client.wait_for_message(user_id)
- Parameters:¶
Example
user.listen()
- Returns:¶
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.