TgConfigProperties

@ConfigurationProperties(prefix = "ktgram")
data class TgConfigProperties @ConstructorBinding constructor(val autoStartPolling: Boolean = true, val shareHttpClient: Boolean = false, val maxHandlingRetries: Int = 5, val bot: List<TgConfigProperties.BotProperties>)(source)

Configuration properties for KtGram.

Constructors

Link copied to clipboard
@ConstructorBinding
constructor(autoStartPolling: Boolean = true, shareHttpClient: Boolean = false, maxHandlingRetries: Int = 5, bot: List<TgConfigProperties.BotProperties>)

Types

Link copied to clipboard
data class BotProperties(val token: String, val pckg: String? = null, val identifier: String = "KtGram")

Configuration properties for a bot.

Properties

Link copied to clipboard

Start long polling automatically after the bot is created.

Link copied to clipboard

The list of bot configurations.

Link copied to clipboard

The maximum number of retries for handling updates.

Link copied to clipboard

Share the same HTTP client instance between all bots.