mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-03 19:00:00 +08:00
update 0.1.4.3
This commit is contained in:
@@ -75,6 +75,13 @@ class RequestManager(StaticData):
|
||||
break
|
||||
self.save()
|
||||
|
||||
def get_group_id(self, id_: int) -> Optional[int]:
|
||||
"""
|
||||
通过id获取群号
|
||||
:param id_: id
|
||||
"""
|
||||
return self._data["group"].get(id_)
|
||||
|
||||
async def approve(self, bot: Bot, id_: int, type_: str) -> Optional[int]:
|
||||
"""
|
||||
同意请求
|
||||
|
||||
Reference in New Issue
Block a user