Skip to content

Commit 5dbd327

Browse files
committed
fix jitpack build problem
1 parent b2ccdae commit 5dbd327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/io/cutebot/telegram/client/TelegramApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class TelegramApi {
112112

113113
val response = httpClient.execute(httpPost)
114114

115-
val r = String(response.entity.content.readAllBytes())
115+
val r = response.entity.content.reader().readText()
116116

117117
return objectMapper
118118
.readerFor(TgResponseMessage::class.java)

0 commit comments

Comments
 (0)