This commit is contained in:
Changhua
2023-11-17 20:46:03 +08:00
parent 831455e5c5
commit 8c18f740c8
2 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ def weather_report(robot: Robot) -> None:
for r in receivers: for r in receivers:
robot.sendTextMsg(report, r) robot.sendTextMsg(report, r)
# robot.sendTextMsg(report, r, "nofity@all") # 发送消息并@所有人 # robot.sendTextMsg(report, r, "notify@all") # 发送消息并@所有人
def main(chat_type: int): def main(chat_type: int):

View File

@@ -186,12 +186,12 @@ class Robot(Job):
""" 发送消息 """ 发送消息
:param msg: 消息字符串 :param msg: 消息字符串
:param receiver: 接收人wxid或者群id :param receiver: 接收人wxid或者群id
:param at_list: 要@的wxid, @所有人的wxid为nofity@all :param at_list: 要@的wxid, @所有人的wxid为notify@all
""" """
# msg 中需要有 @ 名单中一样数量的 @ # msg 中需要有 @ 名单中一样数量的 @
ats = "" ats = ""
if at_list: if at_list:
if at_list == "nofity@all": # @所有人 if at_list == "notify@all": # @所有人
ats = " @所有人" ats = " @所有人"
else: else:
wxids = at_list.split(",") wxids = at_list.split(",")