mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-bot_template.git
synced 2026-12-05 01:33:46 +00:00
first filling of template
This commit is contained in:
1 parent
be81b42468
commit
1a0ab008bf
11 files changed
+398
No files matched your search
@@ -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