mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 16:16:21 +08:00
27 lines
650 B
Python
27 lines
650 B
Python
from pydantic import Field
|
|
|
|
from .base import Event
|
|
|
|
|
|
class RequestEvent(Event):
|
|
event_id: int = Field(alias='eventId')
|
|
message: str
|
|
nick: str
|
|
|
|
|
|
class NewFriendRequestEvent(RequestEvent):
|
|
from_id: int = Field(alias='fromId')
|
|
group_id: int = Field(0, alias='groupId')
|
|
|
|
|
|
class MemberJoinRequestEvent(RequestEvent):
|
|
from_id: int = Field(alias='fromId')
|
|
group_id: int = Field(alias='groupId')
|
|
group_name: str = Field(alias='groupName')
|
|
|
|
|
|
class BotInvitedJoinGroupRequestEvent(RequestEvent):
|
|
from_id: int = Field(alias='fromId')
|
|
group_id: int = Field(alias='groupId')
|
|
group_name: str = Field(alias='groupName')
|