Hint about the returned value in case of stopped downloads

This commit is contained in:
Dan 2019-01-11 14:12:53 +01:00
parent b37d4dc7ec
commit 2791600926

View file

@ -72,6 +72,7 @@ class DownloadMedia(BaseClient):
Returns: Returns:
On success, the absolute path of the downloaded file as string is returned, None otherwise. On success, the absolute path of the downloaded file as string is returned, None otherwise.
In case the download is deliberately stopped with :meth:`stop_transmission`, None is returned as well.
Raises: Raises:
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error. :class:`Error <pyrogram.Error>` in case of a Telegram RPC error.