TelegramBotManager
Functions
Link copied to clipboard
Link copied to clipboard
Determine whether configuration is of type SerializableTelegramBotConfiguration
Link copied to clipboard
Find a matching bot by token or user id. if id is a NumericalID, think of it as a User.id for finding. Otherwise, it is treated as a token
, then converted to a Long and then treated as a User.id.
Link copied to clipboard
Find a matching bot by token or user id. if id is a NumericalID, think of it as a User.id for finding. Otherwise, it is treated as a token
, then converted to a Long and then treated as a User.id.
Link copied to clipboard
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.
open fun register(token: String, configuration: ConfigurerFunction<TelegramBotConfiguration>): TelegramBot
open fun register(ticket: Bot.Ticket, configuration: ConfigurerFunction<TelegramBotConfiguration>): TelegramBot
Register a bot. There can only be one bot (alive) with the same token.