mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-10-31 21:43:54 +00:00
14 lines
327 B
Kotlin
14 lines
327 B
Kotlin
import dev.inmo.tgbotapi.bot.ktor.telegramBot
|
|
import dev.inmo.tgbotapi.extensions.api.bot.getMe
|
|
|
|
/**
|
|
* This is one of the most easiest bot - it will just print information about itself
|
|
*/
|
|
suspend fun main(vararg args: String) {
|
|
val botToken = args.first()
|
|
|
|
val bot = telegramBot(botToken)
|
|
|
|
println(bot.getMe())
|
|
}
|