2022-01-20 14:49:46 +08:00
|
|
|
"""本模块定义了协议适配基类,各协议请继承以下基类。
|
2021-08-29 00:24:28 +08:00
|
|
|
|
2022-01-22 15:23:07 +08:00
|
|
|
使用 {ref}`nonebot.drivers.Driver.register_adapter` 注册适配器。
|
|
|
|
|
|
|
|
FrontMatter:
|
|
|
|
sidebar_position: 0
|
|
|
|
description: nonebot.adapters 模块
|
2021-08-29 00:24:28 +08:00
|
|
|
"""
|
|
|
|
|
2022-02-06 17:08:11 +08:00
|
|
|
from nonebot.internal.adapter import Bot as Bot
|
|
|
|
from nonebot.internal.adapter import Event as Event
|
2022-02-06 14:52:50 +08:00
|
|
|
from nonebot.internal.adapter import Adapter as Adapter
|
2022-02-06 17:08:11 +08:00
|
|
|
from nonebot.internal.adapter import Message as Message
|
|
|
|
from nonebot.internal.adapter import MessageSegment as MessageSegment
|
|
|
|
from nonebot.internal.adapter import MessageTemplate as MessageTemplate
|
2022-01-17 15:06:53 +08:00
|
|
|
|
|
|
|
__autodoc__ = {
|
2022-02-06 14:52:50 +08:00
|
|
|
"Bot": True,
|
|
|
|
"Event": True,
|
|
|
|
"Adapter": True,
|
|
|
|
"Message": True,
|
2023-04-04 21:42:01 +08:00
|
|
|
"Message.__getitem__": True,
|
|
|
|
"Message.__contains__": True,
|
|
|
|
"Message._construct": True,
|
2022-02-06 14:52:50 +08:00
|
|
|
"MessageSegment": True,
|
2023-04-04 21:42:01 +08:00
|
|
|
"MessageSegment.__str__": True,
|
|
|
|
"MessageSegment.__add__": True,
|
2022-02-06 14:52:50 +08:00
|
|
|
"MessageTemplate": True,
|
2022-01-17 15:06:53 +08:00
|
|
|
}
|