XZZ/worker/broadcast.py

18 lines
371 B
Python
Raw Normal View History

2020-08-02 16:42:41 +08:00
from zzcore import StdAns
class Ans(StdAns):
AllowUser = [1318000868]
def GETMSG(self):
groups = self.getgroups()
2021-01-27 11:33:32 +08:00
text = self.raw_msg['raw_message'][11:]
2020-08-02 17:04:09 +08:00
gid = self.gid
2020-08-02 16:42:41 +08:00
2020-08-02 16:55:35 +08:00
for g in groups:
2020-08-02 17:04:09 +08:00
self.gid = g['group_id']
self.sendmsg(text)
self.gid = gid
2020-08-02 16:42:41 +08:00
2020-08-02 17:04:09 +08:00
return "Broadcast done."