add GetMe bot and fix some other bots

This commit is contained in:
2020-06-02 21:48:07 +06:00
parent 0517f451f1
commit d853b6a284
6 changed files with 51 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
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())
}