Update Bot.kt

This commit is contained in:
InsanusMokrassar 2023-04-22 16:39:59 +06:00 committed by GitHub
parent 8d33dc0ab2
commit 6719b9e17c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,11 +13,8 @@ import dev.inmo.tgbotapi.types.inlineQueryAnswerResultsLimit
import dev.inmo.tgbotapi.utils.buildEntities import dev.inmo.tgbotapi.utils.buildEntities
/** /**
* This bot will send files inside of working directory OR from directory in the second argument. * Thi bot will create inline query answers. You
* You may send /send_file command to this bot to get random file from the directory OR * should enable inline queries in bot settings
* `/send_file $number` when you want to receive required number of files. For example,
* /send_file and `/send_file 1` will have the same effect - bot will send one random file.
* But if you will send `/send_file 5` it will choose 5 random files and send them as group
*/ */
suspend fun doInlineQueriesBot(token: String) { suspend fun doInlineQueriesBot(token: String) {
val bot = telegramBot(token) val bot = telegramBot(token)