BotConfiguration

Bot 使用的配置。

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class EngineConfiguration(var pipelining: Boolean? = null)

针对 HttpClientEngineConfig 中的通用默认属性的配置。

Link copied to clipboard
data class TimeoutConfiguration(var connectTimeoutMillis: Long? = null, var requestTimeoutMillis: Long? = null, var socketTimeoutMillis: Long? = null)

api请求的统一超时时间配置。

Properties

Link copied to clipboard

配置bot内部要使用的client Engine。

Link copied to clipboard

针对 HttpClientEngineConfig 中的通用默认属性的配置。

Link copied to clipboard

配置bot内部要使用的client Engine factory。

Link copied to clipboard

HTTP API 请求的连接超时时间。

Link copied to clipboard

为bot提供一个 CoroutineContext。 如果其中存在 kotlinx.coroutines.Job, 则会作为 parent job。

Link copied to clipboard

设置bot进行连接的时候使用要使用压缩数据。

Link copied to clipboard

SubscribeSequence.NORMAL 类型的事件处理器是否在异步中执行。 默认为 true。 当为 false 时, SubscribeSequence.NORMAL 的表现效果将会与 SubscribeSequence.PREPARE 基本类似。

Link copied to clipboard

HTTP API 请求的请求超时时间。

Link copied to clipboard

HTTP API 请求的请求超时时间。

Link copied to clipboard

api请求的超时配置。 如果为null则不会在 httpClient 中安装 io.ktor.client.plugins.HttpTimeout

Link copied to clipboard

ws连接超时时间,单位 ms 。默认为 DEFAULT_WS_CONNECT_TIMEOUT.

Link copied to clipboard

配置bot内部要使用的 ws 连接用的 client Engine。

Link copied to clipboard

针对 HttpClientEngineConfig 中的通用默认属性的配置。

Link copied to clipboard

配置bot内部要使用的 ws Engine factory。

Functions

Link copied to clipboard

禁用超时配置。

Inherited functions

Link copied to clipboard
Link copied to clipboard