Skip to content

Commit

Permalink
feat: 拉取子频道列表附带机器人对子频道权限信息
Browse files Browse the repository at this point in the history
feat: 增加表情表态的发送与撤回能力
  • Loading branch information
DaiJiChen authored and hwygithub committed Mar 4, 2022
1 parent a23713f commit f5f53b3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions qqbot/model/channel.py
Expand Up @@ -19,6 +19,18 @@ class ChannelSubType:
BLACK = 3 # 开黑


class PrivateType:
PUBLIC = 0 # 公开频道
ADMIN = 1 # 管理员和群主可见
SPECIFIED_USER = 2 # 群主管理员+指定成员,可使用 修改子频道权限接口 指定成员


class SpeakPermission:
INVALID = 0 # 无效类型
EVERYONE = 1 # 所有人
ADMIN = 2 # 群主管理员+指定成员,可使用 修改子频道权限接口 指定成员


class Channel:
def __init__(self, data=None):
self.id: str = ""
Expand All @@ -29,6 +41,9 @@ def __init__(self, data=None):
self.position: int = 0
self.parent_id: str = ""
self.owner_id: str = ""
self.private_type: int = 0
self.speak_permission: int = 0
self.application_id: str = ""
if data is not None:
self.__dict__ = data

Expand Down

0 comments on commit f5f53b3

Please sign in to comment.