mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2025-09-15 21:29:21 +00:00
add files loader bot
This commit is contained in:
@@ -30,11 +30,7 @@ suspend fun activateResenderBot(
|
||||
}.launchIn(scope)
|
||||
filterMediaGroupMessages<MediaGroupContent>(scope).onEach {
|
||||
safely {
|
||||
bot.sendMediaGroup(
|
||||
it.first().chat,
|
||||
it.map { it.content.toMediaGroupMemberInputMedia() },
|
||||
replyToMessageId = it.first().messageId
|
||||
).also {
|
||||
bot.executeUnsafe(it.createResend(it.chat ?: return@safely, replyTo = it.first().messageId)).also {
|
||||
print(it)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user