Skip to content

Commit

Permalink
Fix but
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenlagus committed Aug 4, 2024
1 parent f0eb71f commit 665cd14
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<packaging>pom</packaging>
<version>7.7.1</version>
<version>7.7.2</version>

<modules>
<module>telegrambots-meta</module>
Expand Down
6 changes: 3 additions & 3 deletions telegrambots-abilities/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</parent>

<artifactId>telegrambots-abilities</artifactId>
Expand Down Expand Up @@ -104,12 +104,12 @@
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-webhook</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</dependency>
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-longpolling</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion telegrambots-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</parent>

<name>Telegram Bots Client</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
import okhttp3.Callback;
import okhttp3.Response;
import okhttp3.ResponseBody;
import org.apache.commons.io.IOUtils;
import org.telegram.telegrambots.meta.exceptions.TelegramApiException;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.concurrent.CompletableFuture;
Expand All @@ -23,8 +25,10 @@ public void onResponse(@NonNull Call call, @NonNull Response response) {
if (body == null) {
completeExceptionally(new TelegramApiException("Telegram api returned empty response"));
} else {
complete(body.byteStream());
complete(new ByteArrayInputStream(IOUtils.toByteArray(body.byteStream())));
}
} catch (Exception e) {
completeExceptionally(e);
}
}
}
4 changes: 2 additions & 2 deletions telegrambots-extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ Just import add the library to your project with one of these options:
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-extensions</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</dependency>
```

2. Using Gradle:

```gradle
implementation 'org.telegram:telegrambots-extensions:7.7.1'
implementation 'org.telegram:telegrambots-extensions:7.7.2'
```
6 changes: 3 additions & 3 deletions telegrambots-extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</parent>

<artifactId>telegrambots-extensions</artifactId>
Expand Down Expand Up @@ -89,12 +89,12 @@
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-webhook</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</dependency>
<dependency>
<groupId>org.telegram</groupId>
<artifactId>telegrambots-longpolling</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion telegrambots-longpolling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</parent>

<artifactId>telegrambots-longpolling</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion telegrambots-meta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</parent>

<artifactId>telegrambots-meta</artifactId>
Expand Down
4 changes: 2 additions & 2 deletions telegrambots-springboot-longpolling-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</parent>

<artifactId>telegrambots-springboot-longpolling-starter</artifactId>
Expand Down Expand Up @@ -71,7 +71,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<telegrambots.version>7.7.1</telegrambots.version>
<telegrambots.version>7.7.2</telegrambots.version>
<spring.version>3.2.3</spring.version>
</properties>

Expand Down
4 changes: 2 additions & 2 deletions telegrambots-springboot-webhook-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</parent>

<artifactId>telegrambots-springboot-webhook-starter</artifactId>
Expand Down Expand Up @@ -71,7 +71,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<telegrambots.version>7.7.1</telegrambots.version>
<telegrambots.version>7.7.2</telegrambots.version>
<spring.version>3.2.3</spring.version>
<jackson.version>2.17.2</jackson.version>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion telegrambots-test-reports/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</parent>

<artifactId>telegrambots-test-reports</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion telegrambots-webhook/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.telegram</groupId>
<artifactId>Bots</artifactId>
<version>7.7.1</version>
<version>7.7.2</version>
</parent>

<artifactId>telegrambots-webhook</artifactId>
Expand Down

0 comments on commit 665cd14

Please sign in to comment.