This commit is contained in:
Ruben Bermudez 2018-07-27 00:51:45 +02:00
parent 777da2eccd
commit 904dc39a97
7 changed files with 11 additions and 11 deletions

View File

@ -27,7 +27,7 @@ Just import add the library to your project with one of these options:
<dependency> <dependency>
<groupId>org.telegram</groupId> <groupId>org.telegram</groupId>
<artifactId>telegrambots</artifactId> <artifactId>telegrambots</artifactId>
<version>3.6.1</version> <version>4.0.0</version>
</dependency> </dependency>
``` ```

View File

@ -88,7 +88,7 @@ There are several method to send a photo to an user using `sendPhoto` method: Wi
sendPhotoRequest.setPhoto(url); sendPhotoRequest.setPhoto(url);
try { try {
// Execute the method // Execute the method
sendPhoto(sendPhotoRequest); execute(sendPhotoRequest);
} catch (TelegramApiException e) { } catch (TelegramApiException e) {
e.printStackTrace(); e.printStackTrace();
} }
@ -103,7 +103,7 @@ There are several method to send a photo to an user using `sendPhoto` method: Wi
sendPhotoRequest.setPhoto(fileId); sendPhotoRequest.setPhoto(fileId);
try { try {
// Execute the method // Execute the method
sendPhoto(sendPhotoRequest); execute(sendPhotoRequest);
} catch (TelegramApiException e) { } catch (TelegramApiException e) {
e.printStackTrace(); e.printStackTrace();
} }
@ -118,7 +118,7 @@ There are several method to send a photo to an user using `sendPhoto` method: Wi
sendPhotoRequest.setNewPhoto(new File(filePath)); sendPhotoRequest.setNewPhoto(new File(filePath));
try { try {
// Execute the method // Execute the method
sendPhoto(sendPhotoRequest); execute(sendPhotoRequest);
} catch (TelegramApiException e) { } catch (TelegramApiException e) {
e.printStackTrace(); e.printStackTrace();
} }
@ -144,7 +144,7 @@ if (update.hasMessage() && update.getMessage().hasPhoto()) {
.setPhoto(f_id) .setPhoto(f_id)
.setCaption("Photo"); .setCaption("Photo");
try { try {
sendPhoto(msg); // Call method to send the photo execute(msg); // Call method to send the photo
} catch (TelegramApiException e) { } catch (TelegramApiException e) {
e.printStackTrace(); e.printStackTrace();
} }

View File

@ -11,7 +11,7 @@ First you need ot get the library and add it to your project. There are few poss
<dependency> <dependency>
<groupId>org.telegram</groupId> <groupId>org.telegram</groupId>
<artifactId>telegrambots</artifactId> <artifactId>telegrambots</artifactId>
<version>3.6.1</version> <version>4.0.0</version>
</dependency> </dependency>
``` ```
* With **Gradle**: * With **Gradle**:

View File

@ -9,7 +9,7 @@ As with any Java project, you will need to set your dependencies.
<dependency> <dependency>
<groupId>org.telegram</groupId> <groupId>org.telegram</groupId>
<artifactId>telegrambots-abilities</artifactId> <artifactId>telegrambots-abilities</artifactId>
<version>3.6.1</version> <version>4.0.0</version>
</dependency> </dependency>
``` ```
* **Gradle** * **Gradle**

View File

@ -18,7 +18,7 @@ Usage
<dependency> <dependency>
<groupId>org.telegram</groupId> <groupId>org.telegram</groupId>
<artifactId>telegrambots-abilities</artifactId> <artifactId>telegrambots-abilities</artifactId>
<version>3.6.1</version> <version>4.0.0</version>
</dependency> </dependency>
``` ```

View File

@ -16,7 +16,7 @@ Just import add the library to your project with one of these options:
<dependency> <dependency>
<groupId>org.telegram</groupId> <groupId>org.telegram</groupId>
<artifactId>telegrambotsextensions</artifactId> <artifactId>telegrambotsextensions</artifactId>
<version>3.6.1</version> <version>4.0.0</version>
</dependency> </dependency>
``` ```

View File

@ -18,14 +18,14 @@ Usage
<dependency> <dependency>
<groupId>org.telegram</groupId> <groupId>org.telegram</groupId>
<artifactId>telegrambots-spring-boot-starter</artifactId> <artifactId>telegrambots-spring-boot-starter</artifactId>
<version>3.6.1</version> <version>4.0.0</version>
</dependency> </dependency>
``` ```
**Gradle** **Gradle**
```gradle ```gradle
compile "org.telegram:telegrambots-spring-boot-starter:3.6.1" compile "org.telegram:telegrambots-spring-boot-starter:4.0.0"
``` ```
Motivation Motivation