mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-bot_template.git
synced 2025-09-02 14:59:17 +00:00
first filling of template
This commit is contained in:
13
src/main/kotlin/telegram_bot/App.kt
Normal file
13
src/main/kotlin/telegram_bot/App.kt
Normal file
@@ -0,0 +1,13 @@
|
||||
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())
|
||||
}
|
Reference in New Issue
Block a user