From 0e6e9e7e996ffe4342930cea78dffdfa599b4076 Mon Sep 17 00:00:00 2001 From: Ruben Bermudez Date: Mon, 10 Jul 2017 02:16:21 +0200 Subject: [PATCH] Closes #266 --- README.md | 8 ++++---- TelegramBots.wiki/Changelog.md | 6 +++++- 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/RestrictChatMember.java | 2 +- telegrambots/pom.xml | 4 ++-- 9 files changed, 21 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 1faa2535..bf9022a9 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.1 + 3.1.2 ``` ```gradle - compile "org.telegram:telegrambots:3.1.1" + compile "org.telegram:telegrambots:3.1.2" ``` - 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) + 2. Using Jitpack from [here](https://jitpack.io/#rubenlagus/TelegramBots/3.1.2) + 3. Download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v3.1.2) 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 e2deb71c..b0dc16d6 100644 --- a/TelegramBots.wiki/Changelog.md +++ b/TelegramBots.wiki/Changelog.md @@ -78,4 +78,8 @@ **[[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 +1. Fix bug #264 + + +### 3.1.2 ### +1. Fix bug #266 \ No newline at end of file diff --git a/TelegramBots.wiki/Getting-Started.md b/TelegramBots.wiki/Getting-Started.md index 0641d90b..7c0893be 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.1 + 3.1.2 ``` * With **Gradle**: ```groovy - compile group: 'org.telegram', name: 'telegrambots', version: '3.1.1' + compile group: 'org.telegram', name: 'telegrambots', version: '3.1.2' ``` 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 e77073f2..5162cc08 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.telegram Bots pom - 3.1.1 + 3.1.2 telegrambots @@ -25,6 +25,6 @@ true - 3.1.1 + 3.1.2 \ No newline at end of file diff --git a/telegrambots-extensions/README.md b/telegrambots-extensions/README.md index d6ccec01..0578c717 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.1 + 3.1.2 ``` 2. Using Gradle: ```gradle - compile "org.telegram:telegrambotsextensions:3.1.1" + compile "org.telegram:telegrambotsextensions:3.1.2" ``` \ No newline at end of file diff --git a/telegrambots-extensions/pom.xml b/telegrambots-extensions/pom.xml index f895f26a..c5a113d6 100644 --- a/telegrambots-extensions/pom.xml +++ b/telegrambots-extensions/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.telegram telegrambotsextensions - 3.1.1 + 3.1.2 jar Telegram Bots Extensions @@ -59,7 +59,7 @@ UTF-8 UTF-8 - 3.1.1 + 3.1.2 diff --git a/telegrambots-meta/pom.xml b/telegrambots-meta/pom.xml index 9dd524fe..a1341b3d 100644 --- a/telegrambots-meta/pom.xml +++ b/telegrambots-meta/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.telegram telegrambots-meta - 3.1.1 + 3.1.2 jar Telegram Bots Meta diff --git a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/groupadministration/RestrictChatMember.java b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/groupadministration/RestrictChatMember.java index 1b0a6630..ddf557dd 100644 --- a/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/groupadministration/RestrictChatMember.java +++ b/telegrambots-meta/src/main/java/org/telegram/telegrambots/api/methods/groupadministration/RestrictChatMember.java @@ -21,7 +21,7 @@ import static com.google.common.base.Preconditions.checkNotNull; * */ public class RestrictChatMember extends BotApiMethod { - public static final String PATH = "kickchatmember"; + public static final String PATH = "restrictchatmember"; private static final String CHATID_FIELD = "chat_id"; private static final String USER_ID_FIELD = "user_id"; diff --git a/telegrambots/pom.xml b/telegrambots/pom.xml index 4a43bb7a..b24cff82 100644 --- a/telegrambots/pom.xml +++ b/telegrambots/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.telegram telegrambots - 3.1.1 + 3.1.2 jar Telegram Bots @@ -66,7 +66,7 @@ 2.8.7 2.8.0 2.5 - 3.1.1 + 3.1.2