TelegramBotAPI-examples/GetMeBot/src/main/kotlin/GetMeBot.kt

14 lines
327 B
Kotlin
Raw Normal View History

2022-05-10 18:23:14 +00:00
import dev.inmo.tgbotapi.bot.ktor.telegramBot
2020-10-04 11:32:50 +00:00
import dev.inmo.tgbotapi.extensions.api.bot.getMe
2020-06-02 15:48:07 +00:00
/**
* 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())
2022-05-10 18:23:14 +00:00
}