WACommonParameterised.proto 1017 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. syntax = "proto2";
  2. package WACommonParameterised;
  3. option go_package = "git.bobomao.top/joey/testwh/proto/waCommonParameterised";
  4. enum FutureProofBehavior {
  5. PLACEHOLDER = 0;
  6. NO_PLACEHOLDER = 1;
  7. IGNORE = 2;
  8. }
  9. message MessageKey {
  10. optional string remoteJID = 1;
  11. optional bool fromMe = 2;
  12. optional string ID = 3;
  13. optional string participant = 4;
  14. }
  15. message Command {
  16. enum CommandType {
  17. EVERYONE = 1;
  18. SILENT = 2;
  19. AI = 3;
  20. AI_IMAGINE = 4;
  21. }
  22. optional CommandType commandType = 1;
  23. optional uint32 offset = 2;
  24. optional uint32 length = 3;
  25. optional string validationToken = 4;
  26. }
  27. message Mention {
  28. enum MentionType {
  29. PROFILE = 0;
  30. }
  31. optional MentionType mentionType = 1;
  32. optional string mentionedJID = 2;
  33. optional uint32 offset = 3;
  34. optional uint32 length = 4;
  35. }
  36. message MessageText {
  37. optional string text = 1;
  38. repeated string mentionedJID = 2;
  39. repeated Command commands = 3;
  40. repeated Mention mentions = 4;
  41. }
  42. message SubProtocol {
  43. optional bytes payload = 1;
  44. optional int32 version = 2;
  45. }