rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.68k stars 1.18k forks source link

Error in method execute(SendAnimation sendAnimation) #567

Closed vladimirovichsa closed 5 years ago

vladimirovichsa commented 5 years ago

In DefaultAbsSender.java present error in String url = getBaseUrl () + SendVoice.PATH;. Is it in the execute method(Sandanimation sendAnimation) must be a call to SendVoice? When I send a GIF, I get this error org.telegram.telegrambots.meta.exceptions.TelegramApiRequestException: Error sending animation: [400] Bad Request: there is no voice in the request at org.telegram.telegrambots.meta.api.methods.send.SendAnimation.deserializeResponse (SendAnimation.java: 205).

aNNiMON commented 5 years ago

@vladimirovichsa it is already fixed in dev branch with #524 You can use jitpack https://jitpack.io/#rubenlagus/TelegramBots/dev-SNAPSHOT

LeviSchuck commented 5 years ago

This should be closed, it is now included with the latest version on maven.

Chase22 commented 5 years ago

@vladimirovichsa can be closed