mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 16:23:48 +00:00
Converted to expression body
This commit is contained in:
parent
8b79c5c76b
commit
3da74b0c66
@ -25,8 +25,5 @@ fun PathedFile.asFile(
|
|||||||
|
|
||||||
fun PathedFile.asBytes(
|
fun PathedFile.asBytes(
|
||||||
telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper
|
telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper
|
||||||
): ByteArray {
|
): ByteArray = this.asStream(telegramAPIUrlsKeeper)
|
||||||
return this.asStream(telegramAPIUrlsKeeper).use { input ->
|
.use { input -> input.readBytes() }
|
||||||
input.readBytes()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user