mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2026-09-29 11:55:01 +00:00
update readmes
This commit is contained in:
@@ -6,6 +6,13 @@ import dev.inmo.tgbotapi.extensions.utils.*
|
||||
import dev.inmo.tgbotapi.types.dice.SlotMachineDiceAnimationType
|
||||
import kotlinx.coroutines.*
|
||||
|
||||
/**
|
||||
* Starts the long-polling slot-machine detector.
|
||||
*
|
||||
* [args] must contain the bot token first; later elements are ignored. Slot-machine
|
||||
* dice receive a pipe-separated three-reel reply, while other dice receive an
|
||||
* explanatory reply. An undecodable slot-machine result is silently ignored.
|
||||
*/
|
||||
suspend fun main(args: Array<String>) {
|
||||
val bot = telegramBot(args.first())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user