From 38c99cb78d17c3193a65eb2eef22537f5f8b7bb3 Mon Sep 17 00:00:00 2001 From: Ruben Bermudez Date: Sun, 9 Jul 2017 02:48:26 +0200 Subject: [PATCH] Closes #264 --- README.md | 8 ++++---- TelegramBots.wiki/Changelog.md | 5 ++++- TelegramBots.wiki/Getting-Started.md | 4 ++-- pom.xml | 4 ++-- telegrambots-extensions/README.md | 4 ++-- telegrambots-extensions/pom.xml | 4 ++-- telegrambots-meta/pom.xml | 2 +- .../methods/groupadministration/PromoteChatMember.java | 2 +- telegrambots/pom.xml | 4 ++-- 9 files changed, 20 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 13f41236..1faa2535 100644 --- a/README.md +++ b/README.md @@ -27,16 +27,16 @@ Just import add the library to your project with one of these options: org.telegram telegrambots - 3.1.0 + 3.1.1 ``` ```gradle - compile "org.telegram:telegrambots:3.1.0" + compile "org.telegram:telegrambots:3.1.1" ``` - 2. Using Jitpack from [here](https://jitpack.io/#rubenlagus/TelegramBots/3.1.0) - 3. Download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v3.1.0) + 2. Using Jitpack from [here](https://jitpack.io/#rubenlagus/TelegramBots/3.1.1) + 3. Download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v3.1.1) In order to use Long Polling mode, just create your own bot extending `org.telegram.telegrambots.bots.TelegramLongPollingBot`. diff --git a/TelegramBots.wiki/Changelog.md b/TelegramBots.wiki/Changelog.md index 821a0f33..e2deb71c 100644 --- a/TelegramBots.wiki/Changelog.md +++ b/TelegramBots.wiki/Changelog.md @@ -75,4 +75,7 @@ 4. Added new method `execute` and `executeAsync` that can be used to send any api method that extends `BotApiMethod` class. 5. Added new constructors to `GetChat`, `GetChatAdministrators`, `GetChatMember`, `GetChatMemberCount`, `KickChatMember`, `LeaveChat` and `UnbanChatMember` with mandatory fields as parameters. -**[[How to update to version 3.1.0|How-To-Update#3.1.0]]** \ No newline at end of file +**[[How to update to version 3.1.0|How-To-Update#3.1.0]]** + +### 3.1.1 ### +1. Fix bug #264 \ No newline at end of file diff --git a/TelegramBots.wiki/Getting-Started.md b/TelegramBots.wiki/Getting-Started.md index db39ec70..0641d90b 100644 --- a/TelegramBots.wiki/Getting-Started.md +++ b/TelegramBots.wiki/Getting-Started.md @@ -11,13 +11,13 @@ First you need ot get the library and add it to your project. There are few poss org.telegram telegrambots - 3.1.0 + 3.1.1 ``` * With **Gradle**: ```groovy - compile group: 'org.telegram', name: 'telegrambots', version: '3.1.0' + compile group: 'org.telegram', name: 'telegrambots', version: '3.1.1' ``` 2. Don't like **Maven Central Repository**? It can also be taken from [Jitpack](https://jitpack.io/#rubenlagus/TelegramBots). diff --git a/pom.xml b/pom.xml index d8d9a07d..e77073f2 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.telegram Bots pom - 3.1.0 + 3.1.1 telegrambots @@ -25,6 +25,6 @@ true - 3.1.0 + 3.1.1 \ No newline at end of file diff --git a/telegrambots-extensions/README.md b/telegrambots-extensions/README.md index 7ffad33e..d6ccec01 100644 --- a/telegrambots-extensions/README.md +++ b/telegrambots-extensions/README.md @@ -16,12 +16,12 @@ Just import add the library to your project with one of these options: org.telegram telegrambotsextensions - 3.1.0 + 3.1.1 ``` 2. Using Gradle: ```gradle - compile "org.telegram:telegrambotsextensions:3.1.0" + compile "org.telegram:telegrambotsextensions:3.1.1" ``` \ No newline at end of file diff --git a/telegrambots-extensions/pom.xml b/telegrambots-extensions/pom.xml index 7d0aadde..f895f26a 100644 --- a/telegrambots-extensions/pom.xml +++ b/telegrambots-extensions/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.telegram telegrambotsextensions - 3.1.0 + 3.1.1 jar Telegram Bots Extensions @@ -59,7 +59,7 @@ UTF-8 UTF-8 - 3.1.0 + 3.1.1 diff --git a/telegrambots-meta/pom.xml b/telegrambots-meta/pom.xml index 9bccc144..9dd524fe 100644 --- a/telegrambots-meta/pom.xml +++ b/telegrambots-meta/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.telegram telegrambots-meta - 3.1.0 + 3.1.1 jar Telegram Bots Meta diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/groupadministration/PromoteChatMember.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/groupadministration/PromoteChatMember.java index f241e89c..6b52ce8b 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/groupadministration/PromoteChatMember.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/groupadministration/PromoteChatMember.java @@ -25,7 +25,7 @@ public class PromoteChatMember extends BotApiMethod { private static final String CHATID_FIELD = "chat_id"; private static final String USER_ID_FIELD = "user_id"; - private static final String CANCHANGEINFORMATION_FIELD = "can_change_information"; + private static final String CANCHANGEINFORMATION_FIELD = "can_change_info"; private static final String CANPOSTMESSAGES_FIELD = "can_post_messages"; private static final String CANEDITMESSAGES_FIELD = "can_edit_messages"; private static final String CANDELETEMESSAGES_FIELD = "can_delete_messages"; diff --git a/telegrambots/pom.xml b/telegrambots/pom.xml index 53689be0..4a43bb7a 100644 --- a/telegrambots/pom.xml +++ b/telegrambots/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.telegram telegrambots - 3.1.0 + 3.1.1 jar Telegram Bots @@ -66,7 +66,7 @@ 2.8.7 2.8.0 2.5 - 3.1.0 + 3.1.1