ContactOrBot

interface ContactOrBot : CoroutineScope

拥有 id 的对象. 此为 ContactBot 的唯一公共接口.

See also

Inheritors

Functions

Link copied to clipboard
@JvmName(name = "getAvatarUrl")
open fun avatarUrl(spec: AvatarSpec): String

头像下载链接.

Link copied to clipboard
fun CoroutineScope.globalEventChannel(coroutineContext: CoroutineContext = EmptyCoroutineContext): EventChannel<Event>

在此 CoroutineScope 下创建一个监听所有事件的 EventChannel. 相当于 GlobalEventChannel.parentScope(this).context(coroutineContext).

Properties

Link copied to clipboard
open val avatarUrl: String

头像下载链接, 规格默认为 AvatarSpec.LARGEST

Link copied to clipboard
abstract val bot: Bot

相关 Bot

Link copied to clipboard
Link copied to clipboard
abstract val id: Long

QQ 号或群号.