first filling of template

This commit is contained in:
InsanusMokrassar committed 2020-11-08 18:54:39 +06:00
1 parent be81b42468
commit 1a0ab008bf
11 files changed
+398

No files matched your search

+13
View 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())
}