We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i am using the tgbotapi.NewPhoto command in the following method:
photo := tgbotapi.NewPhoto(update.Message.Chat.ID, tgbotapi.FilePath(imageLocation)) photo.Caption = ItemValidate photo.ReplyMarkup = numericKeyboard sendMessage(bot, photo)
most images are working fine, but some are reciving: Bad Request: PHOTO_INVALID_DIMENSIONS
Bad Request: PHOTO_INVALID_DIMENSIONS
{"ok":false,"error_code":400,"description":"Bad Request: PHOTO_INVALID_DIMENSIONS"}
in python, it didn't happen with the same image exactly.
download this image: will work fine: https://m.media-amazon.com/images/M/MV5BYzRjMDBiY2YtMDAyOC00OGQwLWE4Y2MtMTVkYTNkMjQ5MTAzXkEyXkFqcGdeQXVyMjMyMzI4MzY@._V1_.jpg
will fail: https://m.media-amazon.com/images/M/MV5BMWU3Y2RhNTQtNGQxZS00ZWE0LWI5YzQtYzU1MmE4YTE1MDNiXkEyXkFqcGdeQXVyODk4OTc3MTY@._V1_.jpg
and they send it with the NewPhoto method.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
issue
i am using the tgbotapi.NewPhoto command in the following method:
most images are working fine, but some are reciving:
Bad Request: PHOTO_INVALID_DIMENSIONS
in python, it didn't happen with the same image exactly.
to reproduce:
download this image:
will work fine:
https://m.media-amazon.com/images/M/MV5BYzRjMDBiY2YtMDAyOC00OGQwLWE4Y2MtMTVkYTNkMjQ5MTAzXkEyXkFqcGdeQXVyMjMyMzI4MzY@._V1_.jpg
will fail:
https://m.media-amazon.com/images/M/MV5BMWU3Y2RhNTQtNGQxZS00ZWE0LWI5YzQtYzU1MmE4YTE1MDNiXkEyXkFqcGdeQXVyODk4OTc3MTY@._V1_.jpg
and they send it with the NewPhoto method.
The text was updated successfully, but these errors were encountered: