mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-07-01 13:57:36 +00:00
13 lines
382 B
Kotlin
13 lines
382 B
Kotlin
|
import com.github.insanusmokrassar.TelegramBotAPI.extensions.api.bot.getMe
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.extensions.api.telegramBot
|
||
|
|
||
|
/**
|
||
|
* 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())
|
||
|
}
|