mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-12-22 16:47:18 +00:00
13 lines
326 B
Kotlin
13 lines
326 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())
|
|
} |