mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2026-09-13 11:34:13 +00:00
update readmes
This commit is contained in:
@@ -37,7 +37,13 @@ import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
|
||||
/**
|
||||
* An example bot that interacts with Telegram Stars API (used for payments)
|
||||
* Starts the long-polling Telegram Stars and paid-media playground.
|
||||
*
|
||||
* The first element of [args] must be the bot token and the second a numeric admin
|
||||
* user/chat ID authorized for `/transactions`. Optional exact values `debug` and
|
||||
* `testServer` enable diagnostic logging and Telegram's test environment. Other
|
||||
* handlers create a one-Star invoice or paid media and report payment-related
|
||||
* updates.
|
||||
*/
|
||||
suspend fun main(vararg args: String) {
|
||||
val botToken = args.first()
|
||||
|
||||
Reference in New Issue
Block a user