register
Register a bot with a serializable configuration SerializableBotConfiguration. The type of configuration must be SerializableTelegramBotConfiguration. There can only be one bot (alive) with the same token.
See also
Throws
If a bot with the same token
has already been registered and is still alive
abstract fun register(ticket: Bot.Ticket, configuration: TelegramBotConfiguration): TelegramBot(source)
open fun register(ticket: Bot.Ticket, configuration: ConfigurerFunction<TelegramBotConfiguration>): TelegramBot(source)
open fun register(token: String, configuration: ConfigurerFunction<TelegramBotConfiguration>): TelegramBot(source)
Register a bot. There can only be one bot (alive) with the same token.
Throws
If a bot with the same token
has already been registered and is still alive