mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-bot_template.git
synced 2024-11-14 12:23:52 +00:00
14 lines
324 B
Kotlin
14 lines
324 B
Kotlin
|
package telegram_bot
|
||
|
|
||
|
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())
|
||
|
}
|