java如何使用Telegram Bot API提高发送图像的质量
我用Telegram机器人API发送图像,比如
SendDocument newDocMessage = new SendDocument().setDocument(path.toFile());
或者
SendPhoto newPhotoMessage = new SendPhoto().setPhoto(path.toFile());
SendPhoto newPhotoMessageStream = new SendPhoto().setPhoto("Image", stream);
,但与SendPhoto一起发送的图像质量比SendDocument差得多(所以服务器上的图像还可以)。 我知道电报在任何情况下都会压缩图像,但即使我用移动应用程序或从桌面上传相同的图像,质量也要好得多
有没有一种方法可以使用Bot API发送与从桌面/移动应用程序上传的图像质量相同的图像(而不是文档)
共 (0) 个答案