mirror of
https://github.com/InsanusMokrassar/PlaguBot.git
synced 2024-06-01 23:45:15 +00:00
14 lines
329 B
Kotlin
14 lines
329 B
Kotlin
package dev.inmo.plagubot
|
|
|
|
import dev.inmo.tgbotapi.extensions.api.bot.getMe
|
|
import dev.inmo.tgbotapi.extensions.api.telegramBot
|
|
|
|
/**
|
|
* This method by default expects one argument in [args] field: telegram bot token
|
|
*/
|
|
suspend fun main(args: Array<String>) {
|
|
val bot = telegramBot(args.first())
|
|
|
|
println(bot.getMe())
|
|
}
|