Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image failed to upload to telegram #324

Closed
Ryonez opened this issue May 29, 2019 · 1 comment
Closed

Image failed to upload to telegram #324

Ryonez opened this issue May 29, 2019 · 1 comment
Labels
bug: defect Something isn't working and it never has worked
Milestone

Comments

@Ryonez
Copy link

Ryonez commented May 29, 2019

I think I found the log with the related error message.

File "/usr/lib/python3.6/site-packages/telethon/client/users.py", line 60, in call
result = await future
telethon.errors.rpcerrorlist.PhotoInvalidDimensionsError: The photo dimensions are invalid (hint: pip install pillow for send_file to resize images) (caused by SendMediaRequest)

Seems to be an edge case, I send two other images before this one.

@Ryonez
Copy link
Author

Ryonez commented May 29, 2019

I'll note though, I was able to send the image unedited directly via the desktop client. I guess the desktop client handled resizing silently.

Though it does raise the question of what do we do if we want to send it as a file so no quality is lost.

@tulir tulir added the bug: defect Something isn't working and it never has worked label Jun 1, 2019
@tulir tulir added this to the 0.6.0 milestone Jun 1, 2019
@tulir tulir closed this as completed in ddfffaf Jun 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: defect Something isn't working and it never has worked
Development

No branches or pull requests

2 participants