You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was expecting that this will send file normal as
awaitbot.send_file(user_id, file=image_url)
But it also doesn't work with multiple links
Actual behavior
Throws exception
Traceback
File "/usr/local/lib/python3.11/site-packages/telethon/client/uploads.py", line 389, in send_file
result += await self._send_album(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/telethon/client/uploads.py", line 504, in _send_album
result = await self(request)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/telethon/client/users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/telethon/client/users.py", line 87, in _call
result = await future
^^^^^^^^^^^^
telethon.errors.rpcerrorlist.MediaInvalidError: Media invalid (caused by SendMultiMediaRequest)
Telethon version
1.33.0, 1.32.1
Python version
3.11.0
Operating system (including distribution name and version)
Ubuntu 22.04
Other details
No response
Checklist
The error is in the library's code, and not in my own.
I have searched for this issue before posting it and there isn't an open duplicate.
I ran pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip and triggered the bug in the latest version.
The text was updated successfully, but these errors were encountered:
Code that causes the issue
Expected behavior
I was expecting that this will send file normal as
But it also doesn't work with multiple links
Actual behavior
Throws exception
Traceback
Telethon version
1.33.0, 1.32.1
Python version
3.11.0
Operating system (including distribution name and version)
Ubuntu 22.04
Other details
No response
Checklist
pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip
and triggered the bug in the latest version.The text was updated successfully, but these errors were encountered: