Merge pull request #265 from rubenlagus/dev

Closes #264
This commit is contained in:
Ruben Bermudez 2017-07-09 02:56:58 +02:00 committed by GitHub
commit e79a333176
9 changed files with 20 additions and 17 deletions

View File

@ -27,16 +27,16 @@ Just import add the library to your project with one of these options:
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
</dependency>
```
```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`.

View File

@ -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]]**
**[[How to update to version 3.1.0|How-To-Update#3.1.0]]**
### <a id="3.1.1"></a>3.1.1 ###
1. Fix bug #264

View File

@ -11,13 +11,13 @@ First you need ot get the library and add it to your project. There are few poss
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
</dependency>
```
* 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).

View File

@ -7,7 +7,7 @@
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<packaging>pom</packaging>
<version>3.1.0</version>
<version>3.1.1</version>
<modules>
<module>telegrambots</module>
@ -25,6 +25,6 @@
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
<bots.version>3.1.0</bots.version>
<bots.version>3.1.1</bots.version>
</properties>
</project>

View File

@ -16,12 +16,12 @@ Just import add the library to your project with one of these options:
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambotsextensions</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
</dependency>
```
2. Using Gradle:
```gradle
compile "org.telegram:telegrambotsextensions:3.1.0"
compile "org.telegram:telegrambotsextensions:3.1.1"
```

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.telegram</groupId>
<artifactId>telegrambotsextensions</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
<packaging>jar</packaging>
<name>Telegram Bots Extensions</name>
@ -59,7 +59,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<bots.version>3.1.0</bots.version>
<bots.version>3.1.1</bots.version>
</properties>
<dependencies>

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-meta</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
<packaging>jar</packaging>
<name>Telegram Bots Meta</name>

View File

@ -25,7 +25,7 @@ public class PromoteChatMember extends BotApiMethod<Boolean> {
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";

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.telegram</groupId>
<artifactId>telegrambots</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
<packaging>jar</packaging>
<name>Telegram Bots</name>
@ -66,7 +66,7 @@
<jackson.version>2.8.7</jackson.version>
<jacksonanotation.version>2.8.0</jacksonanotation.version>
<commonio.version>2.5</commonio.version>
<bots.version>3.1.0</bots.version>
<bots.version>3.1.1</bots.version>
</properties>
<dependencyManagement>