fix broadcast

This commit is contained in:
SiHuan 2020-08-02 17:04:09 +08:00
parent e0b048d5a1
commit 2f98c680e1

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