fix broadcast
This commit is contained in:
parent
1816a73ed8
commit
4e1d3b7c18
1 changed files with 7 additions and 3 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue