Bot Configuration
@Serializable
The class containing the bot configuration.
Constructors
Link copied to clipboard
constructor(identifier: String = "KtGram", apiHost: String = "https://api.telegram.org", isTestEnv: Boolean = false, inputListener: InputListener = InputListenerMapImpl(), classManager: ClassManager = ClassManagerImpl(), inputAutoRemoval: Boolean = true, exceptionHandlingStrategy: ExceptionHandlingStrategy = ExceptionHandlingStrategy.CollectToChannel, throwExOnActionsFailure: Boolean = false, rateLimiter: RateLimiterConfiguration = RateLimiterConfiguration(), httpClient: HttpConfiguration = HttpConfiguration(), logging: LoggingConfiguration = LoggingConfiguration(), updatesListener: UpdatesListenerConfiguration = UpdatesListenerConfiguration(), commandParsing: CommandParsingConfiguration = CommandParsingConfiguration())
Properties
Link copied to clipboard
The manager that will be used to get classes.
Link copied to clipboard
Exception handling strategy.
Link copied to clipboard
Property to identify different bot instances during multi-bot processing.
Link copied to clipboard
A flag that regulates the auto-deletion of the input point during processing.
Link copied to clipboard
Input handling class instance.
Link copied to clipboard
Throw exception when the action (any bot request) ends with failure.
Functions
Link copied to clipboard
Function for specifying command parsing pattern. See CommandParsingConfiguration.
Link copied to clipboard
Function for configuring the http client. See HttpConfiguration.
Link copied to clipboard
Function for configuring logging. See LoggingConfiguration.
Link copied to clipboard
Function for configuring requests limiting. See RateLimiterConfiguration.
Link copied to clipboard
Function for updates listener configuring. See UpdatesListenerConfiguration.