调整98堂发送的内容,先发文本
This commit is contained in:
4
robot.py
4
robot.py
@@ -454,7 +454,6 @@ class Robot:
|
||||
while True:
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
async def send_group_txt_message(self, msg: str, feature: Feature):
|
||||
"""向所有启用了特定功能的群发送文本消息"""
|
||||
try:
|
||||
@@ -474,7 +473,8 @@ class Robot:
|
||||
return
|
||||
for r in receivers:
|
||||
if self.gbm.get_group_permission(r, feature) == PermissionStatus.ENABLED:
|
||||
await self.ipad_bot.send_image_message(r, path)
|
||||
await self.ipad_bot.send_at_message(r, "98堂 PDF已就绪,请手动发送", ["Jyunere"])
|
||||
# await self.ipad_bot.send_image_message(r, path)
|
||||
except Exception as e:
|
||||
self.LOG.error(f"send_group_file_message:{feature.description} error:{e}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user