WACommon.proto 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. syntax = "proto2";
  2. package WACommon;
  3. option go_package = "git.bobomao.top/joey/testwh/proto/waCommon";
  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. }
  46. message LimitSharing {
  47. enum Trigger {
  48. UNKNOWN = 0;
  49. CHAT_SETTING = 1;
  50. BIZ_SUPPORTS_FB_HOSTING = 2;
  51. UNKNOWN_GROUP = 3;
  52. }
  53. optional bool sharingLimited = 1;
  54. optional Trigger trigger = 2;
  55. optional int64 limitSharingSettingTimestamp = 3;
  56. optional bool initiatedByMe = 4;
  57. }