Skip to content

Commit a0535b3

Browse files
committed
Fix but
1 parent f0eb71f commit a0535b3

File tree

12 files changed

+23
-19
lines changed

12 files changed

+23
-19
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>org.telegram</groupId>
88
<artifactId>Bots</artifactId>
99
<packaging>pom</packaging>
10-
<version>7.7.1</version>
10+
<version>7.7.2</version>
1111

1212
<modules>
1313
<module>telegrambots-meta</module>

telegrambots-abilities/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.telegram</groupId>
99
<artifactId>Bots</artifactId>
10-
<version>7.7.1</version>
10+
<version>7.7.2</version>
1111
</parent>
1212

1313
<artifactId>telegrambots-abilities</artifactId>
@@ -104,12 +104,12 @@
104104
<dependency>
105105
<groupId>org.telegram</groupId>
106106
<artifactId>telegrambots-webhook</artifactId>
107-
<version>7.7.1</version>
107+
<version>7.7.2</version>
108108
</dependency>
109109
<dependency>
110110
<groupId>org.telegram</groupId>
111111
<artifactId>telegrambots-longpolling</artifactId>
112-
<version>7.7.1</version>
112+
<version>7.7.2</version>
113113
</dependency>
114114

115115
<dependency>

telegrambots-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.telegram</groupId>
99
<artifactId>Bots</artifactId>
10-
<version>7.7.1</version>
10+
<version>7.7.2</version>
1111
</parent>
1212

1313
<name>Telegram Bots Client</name>

telegrambots-client/src/main/java/org/telegram/telegrambots/client/okhttp/OkHttpFutureDownloadCallback.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
import okhttp3.Callback;
66
import okhttp3.Response;
77
import okhttp3.ResponseBody;
8+
import org.apache.commons.io.IOUtils;
89
import org.telegram.telegrambots.meta.exceptions.TelegramApiException;
910

11+
import java.io.ByteArrayInputStream;
1012
import java.io.IOException;
1113
import java.io.InputStream;
1214
import java.util.concurrent.CompletableFuture;
@@ -23,8 +25,10 @@ public void onResponse(@NonNull Call call, @NonNull Response response) {
2325
if (body == null) {
2426
completeExceptionally(new TelegramApiException("Telegram api returned empty response"));
2527
} else {
26-
complete(body.byteStream());
28+
complete(new ByteArrayInputStream(IOUtils.toByteArray(body.byteStream())));
2729
}
30+
} catch (Exception e) {
31+
completeExceptionally(e);
2832
}
2933
}
3034
}

telegrambots-extensions/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ Just import add the library to your project with one of these options:
1616
<dependency>
1717
<groupId>org.telegram</groupId>
1818
<artifactId>telegrambots-extensions</artifactId>
19-
<version>7.7.1</version>
19+
<version>7.7.2</version>
2020
</dependency>
2121
```
2222

2323
2. Using Gradle:
2424

2525
```gradle
26-
implementation 'org.telegram:telegrambots-extensions:7.7.1'
26+
implementation 'org.telegram:telegrambots-extensions:7.7.2'
2727
```

telegrambots-extensions/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.telegram</groupId>
99
<artifactId>Bots</artifactId>
10-
<version>7.7.1</version>
10+
<version>7.7.2</version>
1111
</parent>
1212

1313
<artifactId>telegrambots-extensions</artifactId>
@@ -89,12 +89,12 @@
8989
<dependency>
9090
<groupId>org.telegram</groupId>
9191
<artifactId>telegrambots-webhook</artifactId>
92-
<version>7.7.1</version>
92+
<version>7.7.2</version>
9393
</dependency>
9494
<dependency>
9595
<groupId>org.telegram</groupId>
9696
<artifactId>telegrambots-longpolling</artifactId>
97-
<version>7.7.1</version>
97+
<version>7.7.2</version>
9898
</dependency>
9999

100100
<dependency>

telegrambots-longpolling/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.telegram</groupId>
88
<artifactId>Bots</artifactId>
9-
<version>7.7.1</version>
9+
<version>7.7.2</version>
1010
</parent>
1111

1212
<artifactId>telegrambots-longpolling</artifactId>

telegrambots-meta/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.telegram</groupId>
99
<artifactId>Bots</artifactId>
10-
<version>7.7.1</version>
10+
<version>7.7.2</version>
1111
</parent>
1212

1313
<artifactId>telegrambots-meta</artifactId>

telegrambots-springboot-longpolling-starter/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.telegram</groupId>
99
<artifactId>Bots</artifactId>
10-
<version>7.7.1</version>
10+
<version>7.7.2</version>
1111
</parent>
1212

1313
<artifactId>telegrambots-springboot-longpolling-starter</artifactId>
@@ -71,7 +71,7 @@
7171
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7272
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
7373

74-
<telegrambots.version>7.7.1</telegrambots.version>
74+
<telegrambots.version>7.7.2</telegrambots.version>
7575
<spring.version>3.2.3</spring.version>
7676
</properties>
7777

telegrambots-springboot-webhook-starter/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.telegram</groupId>
88
<artifactId>Bots</artifactId>
9-
<version>7.7.1</version>
9+
<version>7.7.2</version>
1010
</parent>
1111

1212
<artifactId>telegrambots-springboot-webhook-starter</artifactId>
@@ -71,7 +71,7 @@
7171
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7272
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
7373

74-
<telegrambots.version>7.7.1</telegrambots.version>
74+
<telegrambots.version>7.7.2</telegrambots.version>
7575
<spring.version>3.2.3</spring.version>
7676
<jackson.version>2.17.2</jackson.version>
7777
</properties>

telegrambots-test-reports/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.telegram</groupId>
88
<artifactId>Bots</artifactId>
9-
<version>7.7.1</version>
9+
<version>7.7.2</version>
1010
</parent>
1111

1212
<artifactId>telegrambots-test-reports</artifactId>

telegrambots-webhook/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.telegram</groupId>
88
<artifactId>Bots</artifactId>
9-
<version>7.7.1</version>
9+
<version>7.7.2</version>
1010
</parent>
1111

1212
<artifactId>telegrambots-webhook</artifactId>

0 commit comments

Comments
 (0)