Document more RPC errors

These two occur when replying to an inline query with a photo and
InputBotInlineMessageMediaAuto empty message, and passing URLs to
PNGs that may not be accessible (i.e. 403 from pixiv).
This commit is contained in:
Lonami Exo
2019-01-17 16:51:50 +01:00
parent 09e58c4e53
commit b0883148f5
3 changed files with 13 additions and 1 deletions

View File

@@ -26,6 +26,16 @@ class DownloadMethods(UserMethods):
entity (`entity`):
From who the photo will be downloaded.
.. note::
This method expects the full entity (which has the data
to download the photo), not an input variant.
It's possible that sometimes you can't fetch the entity
from its input (since you can get errors like
``ChannelPrivateError``) but you already have it through
another call, like getting a forwarded message from it.
file (`str` | `file`, optional):
The output file path, directory, or stream-like object.
If the path exists and is a file, it will be overwritten.