Skip to content

grpc MessageType doesn't match with that in ts-wechaty #65

Open
@wj-Mcat

Description

@wj-Mcat

https://github.com/Chatie/grpc/blob/4c32075f391c29407a9ace0fb6c8765097277bb1/proto/wechaty/puppet/message.proto#L9-L26

This does not match the MessageType definition in wechaty-puppet, and we found this during testing. Tests show that wechaty-puppet's data type definition is correct.

export enum MessageType {
  Unknown = 0,

  Attachment,     // Attach(6),
  Audio,          // Audio(1), Voice(34)
  Contact,        // ShareCard(42)
  ChatHistory,    // ChatHistory(19)
  Emoticon,       // Sticker: Emoticon(15), Emoticon(47)
  Image,          // Img(2), Image(3)
  Text,           // Text(1)
  Location,       // Location(48)
  MiniProgram,    // MiniProgram(33)
  GroupNote,      // GroupNote(53)
  Transfer,       // Transfers(2000)
  RedEnvelope,    // RedEnvelopes(2001)
  Recalled,       // Recalled(10002)
  Url,            // Url(5)
  Video,          // Video(4), Video(43)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions