Skip to content

Commit 230eeea

Browse files
committed
Docs updated
1 parent 5202983 commit 230eeea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/github/demidko/telegram/TelegramStorage.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class TelegramStorage<K, V>(
133133
val telegramFile = Cbor.encodeToByteArray(keystoreSerializer, keyToTelegramFileId).let(::ByByteArray)
134134
val fileId = bot.sendDocument(channel, telegramFile).first?.body()?.result?.document?.fileId!!
135135
val isSuccessfully = bot.setChatDescription(channel, fileId).first?.isSuccessful!!
136-
check(isSuccessfully) { "Can't save file id $fileId" }
136+
check(isSuccessfully) { "Can't save keystore id $fileId. Make sure your bot has the right permissions!" }
137137
}
138138
checkNotNull(shutdownFuture).get()
139139
getRuntime().removeShutdownHook(shutdownHook)

0 commit comments

Comments
 (0)