mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-11-25 19:48:49 +00:00
Update Bot.kt
This commit is contained in:
parent
8d33dc0ab2
commit
6719b9e17c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user