mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2025-09-07 17:19:38 +00:00
update up to 0.35.9
This commit is contained in:
@@ -18,7 +18,7 @@ suspend fun main(args: Array<String>) {
|
||||
directoryOrFile.mkdirs()
|
||||
|
||||
telegramBotWithBehaviour(botToken, CoroutineScope(Dispatchers.IO)) {
|
||||
onMedia(includeMediaGroups = true) {
|
||||
onMedia(initialFilter = null) {
|
||||
val pathedFile = bot.getFileAdditionalInfo(it.content.media)
|
||||
val file = File(directoryOrFile, pathedFile.filePath.filenameFromUrl).apply {
|
||||
createNewFile()
|
||||
|
Reference in New Issue
Block a user