Skip to content

消息事件:私聊与群聊消息

Extends ​

Properties ​

at? ​

readonly optional at?: string


bot ​

readonly bot: BotBase

Inherited from ​

BotEventBase.bot


friend? ​

readonly optional friend?: Friend


group? ​

readonly optional group?: Group


group_id? ​

readonly optional group_id?: string


group_name? ​

readonly optional group_name?: string


identity ​

readonly identity: EventIdentity

Inherited from ​

BotEventBase.identity


is_to_me? ​

readonly optional is_to_me?: boolean


kind ​

readonly kind: "message"

事件大类:message / notice / request / meta_event / adapter

Overrides ​

BotEventBase.kind


message ​

readonly message: Message


message_id? ​

readonly optional message_id?: string


message_type ​

readonly message_type: string & object | "private" | "group" | "channel" | "thread" | "direct"


quote_id? ​

readonly optional quote_id?: string


raw? ​

readonly optional raw?: unknown

Inherited from ​

BotEventBase.raw


raw_message? ​

readonly optional raw_message?: string


routes ​

readonly routes: readonly string[]

该事件可匹配的路由列表,由 buildRoutes 生成

Inherited from ​

BotEventBase.routes


self_id ​

readonly self_id: string

Inherited from ​

BotEventBase.self_id


sender? ​

readonly optional sender?: SenderInfo


sub_type? ​

readonly optional sub_type?: string


time? ​

readonly optional time?: number

Inherited from ​

BotEventBase.time


type ​

readonly type: string

事件类型,如 message、notice.group.poke

Inherited from ​

BotEventBase.type


user_id? ​

readonly optional user_id?: string

Methods ​

recall() ​

recall(): Promise<void>

Returns ​

Promise<void>


reply() ​

reply(message, options?): Promise<SentMessage>

回复这条消息

Parameters ​

message ​

MessageInput

options? ​

boolean | ReplyOptions

Returns ​

Promise<SentMessage>

Released under the MIT License with love.