From 584b9d5f9882902652309ae7dc0a82381a9fc80b Mon Sep 17 00:00:00 2001 From: ezachateyskiy Date: Sat, 15 Sep 2018 02:07:17 +0300 Subject: [PATCH] Fix wrong path for SendAnimation command --- .../java/org/telegram/telegrambots/bots/DefaultAbsSender.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambots/src/main/java/org/telegram/telegrambots/bots/DefaultAbsSender.java b/telegrambots/src/main/java/org/telegram/telegrambots/bots/DefaultAbsSender.java index 2a4e2d80..e7cbcec0 100644 --- a/telegrambots/src/main/java/org/telegram/telegrambots/bots/DefaultAbsSender.java +++ b/telegrambots/src/main/java/org/telegram/telegrambots/bots/DefaultAbsSender.java @@ -641,7 +641,7 @@ public abstract class DefaultAbsSender extends AbsSender { assertParamNotNull(sendAnimation, "sendAnimation"); sendAnimation.validate(); try { - String url = getBaseUrl() + SendVoice.PATH; + String url = getBaseUrl() + SendAnimation.PATH; HttpPost httppost = configuredHttpPost(url); MultipartEntityBuilder builder = MultipartEntityBuilder.create(); builder.setLaxMode();