From 0002cd3fa284d33c1076c7e1b768734f287f2127 Mon Sep 17 00:00:00 2001 From: Ruben Bermudez Date: Tue, 25 Aug 2015 20:34:22 +0200 Subject: [PATCH 1/2] Update SendVoice.java --- src/main/java/org/telegram/methods/SendVoice.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/telegram/methods/SendVoice.java b/src/main/java/org/telegram/methods/SendVoice.java index 4f07500..b97b432 100644 --- a/src/main/java/org/telegram/methods/SendVoice.java +++ b/src/main/java/org/telegram/methods/SendVoice.java @@ -16,8 +16,8 @@ public class SendVoice { public static final String CHATID_FIELD = "chat_id"; private Integer chatId; ///< Unique identifier for the message recepient — User or GroupChat id - public static final String AUDIO_FIELD = "audio"; - private String audio; ///< Audio file to send. file_id as String to resend an audio that is already on the Telegram servers + public static final String VOICE_FIELD = "voice"; + private String voice; ///< Audio file to send. file_id as String to resend an audio that is already on the Telegram servers public static final String REPLYTOMESSAGEID_FIELD = "reply_to_message_id"; private Integer replayToMessageId; ///< Optional. If the message is a reply, ID of the original message public static final String REPLYMARKUP_FIELD = "reply_markup"; From c84487b2006aba79a1f5880b3f34c7fe873d4d67 Mon Sep 17 00:00:00 2001 From: Ruben Bermudez Date: Thu, 8 Oct 2015 00:04:37 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c4f97f..1b9d5d3 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Please, **DO NOT PUSH ANY TOKEN OR API KEY**, I will never accept a pull request ## Webhooks vs GetUpdates Both ways are supported (but I still didn't tested webhooks). To change between them, just go to *BuildVars.java* and change variable *useWebHook* value. -I recommend using getUpdates methods. Webhooks only works using a certificated that is not self-signed +I recommend using getUpdates methods. Webhooks a bit less trustful ## Example bots Open them and send them */help* command to get some information about their capabilities: