github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/client/packets/pb/message/element.proto (about)

     1  syntax = "proto3";
     2  
     3  option go_package = "github.com/LagrangeDev/LagrangeGo/client/packets/pb/message";
     4  
     5  message Elem {
     6    optional Text Text = 1;
     7    optional Face Face = 2;
     8    optional OnlineImage OnlineImage = 3;
     9    optional NotOnlineImage NotOnlineImage = 4;
    10    optional TransElem TransElem = 5;
    11    optional MarketFace MarketFace = 6;
    12    optional CustomFace CustomFace = 8;
    13    optional ElemFlags2 ElemFlags2 = 9;
    14    optional RichMsg RichMsg = 12;
    15    optional GroupFile GroupFile = 13;
    16    optional ExtraInfo ExtraInfo = 16;
    17    optional VideoFile VideoFile = 19;
    18    optional AnonymousGroupMessage AnonymousGroupMessage = 21;
    19    optional QQWalletMsg QQWalletMsg = 24;
    20    optional CustomElem CustomElem = 31;
    21    optional GeneralFlags GeneralFlags = 37;
    22    optional SrcMsg SrcMsg = 45;
    23    optional LightAppElem LightAppElem = 51;
    24    optional CommonElem CommonElem = 53;
    25  }
    26  
    27  message AnonymousGroupMessage {
    28    int32 Flags = 1;
    29    bytes AnonId = 2;
    30    bytes AnonNick = 3;
    31    int32 HeadPortrait = 4;
    32    int32 ExpireTime = 5;
    33    int32 BubbleId = 6;
    34    bytes RankColor = 7;
    35  }
    36  
    37  message CommonElem {
    38    int32 ServiceType = 1;
    39    bytes PbElem = 2;
    40    uint32 BusinessType = 3;
    41  }
    42  
    43  message CustomElem {
    44    bytes Desc = 1;
    45    bytes Data = 2;
    46    int32 EnumType = 3;
    47    bytes Ext = 4;
    48    bytes Sound = 5;
    49  }
    50  
    51  message CustomFace {
    52    bytes Guid = 1;
    53    string FilePath = 2;
    54    string Shortcut = 3;
    55    bytes Buffer = 4;
    56    bytes Flag = 5;
    57    bytes OldData = 6;
    58    uint32 FileId = 7;
    59    optional int32 ServerIp = 8;
    60    optional int32 ServerPort = 9;
    61    int32 FileType = 10;
    62    bytes Signature = 11;
    63    int32 Useful = 12;
    64    bytes Md5 = 13;
    65    string ThumbUrl = 14;
    66    string BigUrl = 15;
    67    string OrigUrl = 16;
    68    int32 BizType = 17;
    69    int32 RepeatIndex = 18;
    70    int32 RepeatImage = 19;
    71    int32 ImageType = 20;
    72    int32 Index = 21;
    73    int32 Width = 22;
    74    int32 Height = 23;
    75    int32 Source = 24;
    76    uint32 Size = 25;
    77    int32 Origin = 26;
    78    optional int32 ThumbWidth = 27;
    79    optional int32 ThumbHeight = 28;
    80    int32 ShowLen = 29;
    81    int32 DownloadLen = 30;
    82    optional string X400Url = 31;
    83    int32 X400Width = 32;
    84    int32 X400Height = 33;
    85    optional bytes PbReserve = 34;
    86  }
    87  
    88  message ElemFlags2 {
    89    uint32 ColorTextId = 1;
    90    uint64 MsgId = 2;
    91    uint32 WhisperSessionId = 3;
    92    uint32 PttChangeBit = 4;
    93    uint32 VipStatus = 5;
    94    uint32 CompatibleId = 6;
    95    repeated Instance Insts = 7;
    96    uint32 MsgRptCnt = 8;
    97    Instance SrcInst = 9;
    98    uint32 Longtitude = 10;
    99    uint32 Latitude = 11;
   100    uint32 CustomFont = 12;
   101    PcSupportDef PcSupportDef = 13;
   102    optional uint32 CrmFlags = 14;
   103  }
   104  
   105  message PcSupportDef {
   106    uint32 PcPtlBegin = 1;
   107    uint32 PcPtlEnd = 2;
   108    uint32 MacPtlBegin = 3;
   109    uint32 MacPtlEnd = 4;
   110    repeated int32 PtlsSupport = 5;
   111    repeated uint32 PtlsNotSupport = 6;
   112  }
   113  
   114  message Instance {
   115    uint32 AppId = 1;
   116    uint32 InstId = 2;
   117  }
   118  
   119  message ExtraInfo {
   120    bytes Nick = 1;
   121    bytes GroupCard = 2;
   122    int32 Level = 3;
   123    int32 Flags = 4;
   124    int32 GroupMask = 5;
   125    int32 MsgTailId = 6;
   126    bytes SenderTitle = 7;
   127    bytes ApnsTips = 8;
   128    uint64 Uin = 9;
   129    int32 MsgStateFlag = 10;
   130    int32 ApnsSoundType = 11;
   131    int32 NewGroupFlag = 12;
   132  }
   133  
   134  message Face {
   135    optional int32 Index = 1;
   136    optional bytes Old = 2;
   137    optional bytes Buf = 11;
   138  }
   139  
   140  message GeneralFlags {
   141    int32 BubbleDiyTextId = 1;
   142    int32 GroupFlagNew = 2;
   143    uint64 Uin = 3;
   144    bytes RpId = 4;
   145    int32 PrpFold = 5;
   146    int32 LongTextFlag = 6;
   147    optional string LongTextResId = 7;
   148    int32 GroupType = 8;
   149    int32 ToUinFlag = 9;
   150    int32 GlamourLevel = 10;
   151    int32 MemberLevel = 11;
   152    uint64 GroupRankSeq = 12;
   153    int32 OlympicTorch = 13;
   154    bytes BabyqGuideMsgCookie = 14;
   155    int32 Uin32ExpertFlag = 15;
   156    int32 BubbleSubId = 16;
   157    uint64 PendantId = 17;
   158    bytes RpIndex = 18;
   159    bytes PbReserve = 19;
   160  }
   161  
   162  message GroupFile {
   163    bytes Filename = 1;
   164    uint64 FileSize = 2;
   165    bytes FileId = 3;
   166    bytes BatchId = 4;
   167    bytes FileKey = 5;
   168    bytes Mark = 6;
   169    uint64 Sequence = 7;
   170    bytes BatchItemId = 8;
   171    int32 FeedMsgTime = 9;
   172    bytes PbReserve = 10;
   173  }
   174  
   175  message LightAppElem {
   176    bytes Data = 1;
   177    optional bytes MsgResid = 2;
   178  }
   179  
   180  message MarketFace {
   181    bytes FaceName = 1;
   182    int32 ItemType = 2;
   183    int32 FaceInfo = 3;
   184    bytes FaceId = 4;
   185    int32 TabId = 5;
   186    int32 SubType = 6;
   187    bytes Key = 7;
   188    bytes Param = 8;
   189    int32 MediaType = 9;
   190    int32 ImageWidth = 10;
   191    int32 ImageHeight = 11;
   192    bytes Mobileparam = 12;
   193    bytes PbReserve = 13;
   194  }
   195  
   196  message NotOnlineImage {
   197    string FilePath = 1;
   198    uint32 FileLen = 2;
   199    string DownloadPath = 3;
   200    bytes OldVerSendFile = 4;
   201    int32 ImgType = 5;
   202    bytes PreviewsImage = 6;
   203    bytes PicMd5 = 7;
   204    uint32 PicHeight = 8;
   205    uint32 PicWidth = 9;
   206    string ResId = 10;
   207    bytes Flag = 11;
   208    string ThumbUrl = 12;
   209    int32 Original = 13;
   210    string BigUrl = 14;
   211    string OrigUrl = 15;
   212    int32 BizType = 16;
   213    int32 Result = 17;
   214    int32 Index = 18;
   215    bytes OpFaceBuf = 19;
   216    bool OldPicMd5 = 20;
   217    int32 ThumbWidth = 21;
   218    int32 ThumbHeight = 22;
   219    int32 FileId = 23;
   220    uint32 ShowLen = 24;
   221    uint32 DownloadLen = 25;
   222    bytes PbRes = 26;
   223  }
   224  
   225  message OnlineImage {
   226    bytes Guid = 1;
   227    bytes FilePath = 2;
   228    bytes OldVerSendFile = 3;
   229  }
   230  
   231  message QQWalletMsg {
   232    QQWalletAioBody Type = 1;
   233  }
   234  
   235  message QQWalletAioBody {
   236    uint64 SendUin = 1;
   237    QQWalletAioElem Sender = 2;
   238    QQWalletAioElem Receiver = 3;
   239    sint32 ChannelId = 4;
   240    sint32 TemplateId = 5;
   241    uint32 Resend = 6;
   242    uint32 MsgPriority = 7;
   243    sint32 RedType = 8;
   244    bytes BillNo = 9;
   245    bytes AuthKey = 10;
   246    sint32 SessionType = 11;
   247    sint32 MsgType = 12;
   248    sint32 EnvelOpeId = 13;
   249    bytes Name = 14;
   250    sint32 ConfType = 15;
   251    sint32 MsgFrom = 16;
   252    bytes PcBody = 17;
   253    bytes Index = 18;
   254    uint32 RedChannel = 19;
   255    uint64 GrapUin = 20;
   256    bytes PbReserve = 21;
   257  }
   258  
   259  message QQWalletAioElem {
   260    uint32 Background = 1;
   261    uint32 Icon = 2;
   262    string Title = 3;
   263    string Subtitle = 4;
   264    string Content = 5;
   265    bytes LinkUrl = 6;
   266    bytes BlackStripe = 7;
   267    bytes Notice = 8;
   268    uint32 TitleColor = 9;
   269    uint32 SubtitleColor = 10;
   270    bytes ActionsPriority = 11;
   271    bytes JumpUrl = 12;
   272    bytes NativeIos = 13;
   273    bytes NativeAndroid = 14;
   274    bytes IconUrl = 15;
   275    uint32 ContentColor = 16;
   276    uint32 ContentBgColor = 17;
   277    bytes AioImageLeft = 18;
   278    bytes AioImageRight = 19;
   279    bytes CftImage = 20;
   280    bytes PbReserve = 21;
   281  }
   282  
   283  message RedBagInfo {
   284    optional uint32 RedBagType = 1;
   285  }
   286  
   287  message RichMsg {
   288    optional bytes Template1 = 1;
   289    optional int32 ServiceId = 2;
   290    optional bytes MsgResId = 3;
   291    optional int32 Rand = 4;
   292    optional uint32 Seq = 5;
   293  }
   294  
   295  message SrcMsg {
   296    repeated uint32 OrigSeqs = 1;
   297    uint64 SenderUin = 2;
   298    optional int32 Time = 3;
   299    optional int32 Flag = 4;
   300    repeated Elem Elems = 5;
   301    optional int32 Type = 6;
   302    optional bytes RichMsg = 7;
   303    optional bytes PbReserve = 8;
   304    optional bytes SourceMsg = 9;
   305    optional uint64 ToUin = 10;
   306    optional bytes TroopName = 11;
   307  }
   308  
   309  message Preserve {
   310    uint64 MessageId = 3;
   311    string SenderUid = 6;
   312    string ReceiverUid = 7;
   313    uint32 ClientSequence = 8;
   314  }
   315  
   316  message Text {
   317    optional string Str = 1;
   318    optional string Lint = 2;
   319    optional bytes Attr6Buf = 3;
   320    optional bytes Attr7Buf = 4;
   321    optional bytes Buf = 11;
   322    optional bytes PbReserve = 12;
   323  }
   324  
   325  message TransElem {
   326    int32 ElemType = 1;
   327    bytes ElemValue = 2;
   328  }
   329  
   330  message VideoFile {
   331    string FileUuid = 1;
   332    bytes FileMd5 = 2;
   333    string FileName = 3;
   334    int32 FileFormat = 4;
   335    int32 FileTime = 5;
   336    int32 FileSize = 6;
   337    int32 ThumbWidth = 7;
   338    int32 ThumbHeight = 8;
   339    bytes ThumbFileMd5 = 9;
   340    bytes Source = 10;
   341    int32 ThumbFileSize = 11;
   342    int32 BusiType = 12;
   343    int32 FromChatType = 13;
   344    int32 ToChatType = 14;
   345    bool BoolSupportProgressive = 15;
   346    int32 FileWidth = 16;
   347    int32 FileHeight = 17;
   348    int32 SubBusiType = 18;
   349    int32 VideoAttr = 19;
   350    repeated bytes BytesThumbFileUrls = 20;
   351    repeated bytes BytesVideoFileUrls = 21;
   352    int32 ThumbDownloadFlag = 22;
   353    int32 VideoDownloadFlag = 23;
   354    bytes PbReserve = 24;
   355  }
   356  
   357  // extra
   358  
   359  message CustomFaceExtra {
   360    optional string Hash = 31;
   361  }
   362  
   363  message FaceExtra {
   364    optional int32 FaceId = 1;
   365  }
   366  
   367  message ImageExtra {
   368    uint32 Field85 = 85;
   369  }
   370  
   371  message MentionExtra {
   372    optional int32 Type = 3;
   373    optional uint32 Uin = 4;
   374    optional int32 Field5 = 5;
   375    optional string Uid = 9;
   376  }
   377  
   378  message QFaceExtra {
   379    optional string Field1 = 1;
   380    optional string Field2 = 2;
   381    optional int32 FaceId = 3;
   382    optional int32 Field4 = 4;
   383    optional int32 Field5 = 5;
   384    optional string Field6 = 6;
   385    optional string Preview = 7;
   386    optional int32 Field9 = 9;
   387  }
   388  
   389  message QSmallFaceExtra {
   390    uint32 FaceId = 1;
   391    string Preview = 2;
   392    string Preview2 = 3;
   393  }