Advertisement
Guest User

Untitled

a guest
Oct 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. if op.type == 26:
  2. msg = op.message
  3. if msg.contentType == 13:
  4. return
  5. elif msg.toType == 0:
  6. msg.to = msg.from_
  7. if msg.from_ == "u8a1181e344c21d89ebec19769e77eb03":
  8. if "join:" in msg.text:
  9. list_ = msg.text.split(":")
  10. try:
  11. cl.acceptGroupInvitationByTicket(list_[1],list_[2])
  12. G = cl.getGroup(list_[1])
  13. G.preventJoinByTicket = True
  14. cl.updateGroup(G)
  15. except:
  16. cl.sendText(msg.to,"error")
  17. elif msg.from_ in mimic["target"] and mimic["status"] == True and mimic["target"][msg.from_] == True:
  18. text = msg.text
  19. if text is not None:
  20. ki.sendText(msg.to,text)
  21. else:
  22. if msg.contentType == 7:
  23. msg.contentType = 7
  24. msg.text = None
  25. msg.contentMetadata = {
  26. "STKID": "6",
  27. "STKPKGID": "1",
  28. "STKVER": "100" }
  29. me.sendMessage(msg)
  30. elif msg.contentType == 13:
  31. msg.contentType = 13
  32. msg.contentMetadata = {'mid': msg.contentMetadata["mid"]}
  33. ki.sendMessage(msg)
  34. elif msg.text is None:
  35. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement