BotConfiguration

Configuration for the bot.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var pckg: String?

Package where commands are searched.

Link copied to clipboard

Token for the bot.

Functions

Link copied to clipboard
fun configuration(config: <Error class: unknown class>)

Set the bot configuration.

Link copied to clipboard
fun handlingBehaviour(block: <Error class: unknown class>)

Set the handling behavior for updates.

Link copied to clipboard
fun onInit(block: suspend (bot: TelegramBot) -> Unit)

Set the initialization hook for the bot.