跳到主要内容

跨平台

been_group_invited

被邀请入群

参数名称类型
raw_eventfrom typing import Dict
botfrom pepperbot.adapters.universal.api import UniversalGroupBot
from typing import Dict
from pepperbot.adapters.universal.api import UniversalGroupBot


class MyHandler:
async def been_group_invited(
self,
raw_event: Dict,
bot: UniversalGroupBot,
):
pass

friend_message

好友消息

参数名称类型
raw_eventfrom typing import Dict
chainfrom pepperbot.core.message.chain import MessageChain
from typing import Dict
from pepperbot.core.message.chain import MessageChain


class MyHandler:
async def friend_message(
self,
raw_event: Dict,
chain: MessageChain,
):
pass

group_join_request

加群请求

参数名称类型
raw_eventfrom typing import Dict
botfrom pepperbot.adapters.universal.api import UniversalGroupBot
from typing import Dict
from pepperbot.adapters.universal.api import UniversalGroupBot


class MyHandler:
async def group_join_request(
self,
raw_event: Dict,
bot: UniversalGroupBot,
):
pass

group_member_declined

群成员减少

参数名称类型
raw_eventfrom typing import Dict
botfrom pepperbot.adapters.universal.api import UniversalGroupBot
from typing import Dict
from pepperbot.adapters.universal.api import UniversalGroupBot


class MyHandler:
async def group_member_declined(
self,
raw_event: Dict,
bot: UniversalGroupBot,
):
pass

group_member_increased

群成员增加

参数名称类型
raw_eventfrom typing import Dict
botfrom pepperbot.adapters.universal.api import UniversalGroupBot
from typing import Dict
from pepperbot.adapters.universal.api import UniversalGroupBot


class MyHandler:
async def group_member_increased(
self,
raw_event: Dict,
bot: UniversalGroupBot,
):
pass

group_message

群消息

参数名称类型
raw_eventfrom typing import Dict
botfrom pepperbot.adapters.universal.api import UniversalGroupBot
chainfrom pepperbot.core.message.chain import MessageChain
from typing import Dict
from pepperbot.adapters.universal.api import UniversalGroupBot
from pepperbot.core.message.chain import MessageChain


class MyHandler:
async def group_message(
self,
raw_event: Dict,
bot: UniversalGroupBot,
chain: MessageChain,
):
pass

stranger_message

陌生人消息

参数名称类型
raw_eventfrom typing import Dict
chainfrom pepperbot.core.message.chain import MessageChain
from typing import Dict
from pepperbot.core.message.chain import MessageChain


class MyHandler:
async def stranger_message(
self,
raw_event: Dict,
chain: MessageChain,
):
pass