Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if op.type == 26:
- msg = op.message
- if msg.contentType == 13:
- return
- elif msg.toType == 0:
- msg.to = msg.from_
- if msg.from_ == "u8a1181e344c21d89ebec19769e77eb03":
- if "join:" in msg.text:
- list_ = msg.text.split(":")
- try:
- cl.acceptGroupInvitationByTicket(list_[1],list_[2])
- G = cl.getGroup(list_[1])
- G.preventJoinByTicket = True
- cl.updateGroup(G)
- except:
- cl.sendText(msg.to,"error")
- elif msg.from_ in mimic["target"] and mimic["status"] == True and mimic["target"][msg.from_] == True:
- text = msg.text
- if text is not None:
- ki.sendText(msg.to,text)
- else:
- if msg.contentType == 7:
- msg.contentType = 7
- msg.text = None
- msg.contentMetadata = {
- "STKID": "6",
- "STKPKGID": "1",
- "STKVER": "100" }
- me.sendMessage(msg)
- elif msg.contentType == 13:
- msg.contentType = 13
- msg.contentMetadata = {'mid': msg.contentMetadata["mid"]}
- ki.sendMessage(msg)
- elif msg.text is None:
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement