
eu.vendeli.tgbot.utils.builders.BotCommandsBuilder.kt Maven / Gradle / Ivy
package eu.vendeli.tgbot.utils.builders
import eu.vendeli.tgbot.types.bot.BotCommand
/**
* Builder used to add commands to setMyCommands()
*/
class BotCommandsBuilder {
internal val commandsList = mutableListOf()
/**
* Add new bot command
*
* @param command
* @param description
*/
fun botCommand(command: String, description: String) {
commandsList.add(BotCommand(command, description))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy