fix broadcast

This commit is contained in:
SiHuan 2020-08-02 17:04:09 +08:00
parent 1816a73ed8
commit 4e1d3b7c18

View file

@ -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)
return msg
self.gid = gid
return "Broadcast done."