From 2f98c680e1dc07bed5f609f90211db870eda8580 Mon Sep 17 00:00:00 2001 From: SiHuan Date: Sun, 2 Aug 2020 17:04:09 +0800 Subject: [PATCH] fix broadcast --- worker/broadcast.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/worker/broadcast.py b/worker/broadcast.py index 99d51cb..3a993e5 100644 --- a/worker/broadcast.py +++ b/worker/broadcast.py @@ -5,9 +5,13 @@ class Ans(StdAns): def GETMSG(self): groups = self.getgroups() + text = self.raw_msg['message'][11:] + gid = self.gid - msg = "" for g in groups: - msg += g["group_name"] + "\n" + self.gid = g['group_id'] + self.sendmsg(text) + + self.gid = gid - return msg + return "Broadcast done."