Rhymen / go-whatsapp

WhatsApp Web API
MIT License
2.07k stars 493 forks source link

How to encrypt chats data #639

Open witherbit opened 2 years ago

witherbit commented 2 years ago

Hello everyone, I have my own framework in c#. I used the Chats() method to get chats, but the data is something like this:

{
  "Result": {
    "Description": "response",
    "Attributes": {
      "status": "881177",
      "type": "chat"
    },
    "Content": [
      {
        "Description": "chat",
        "Attributes": {
          "t": "6677776677",
          "count": "\u0000",
          "spam": "false",
          "jid": "9999776633\u0000@c.us",
          "modify_tag": "005544"
        },
        "Content": null
      },
      {
        "Description": "chat",
        "Attributes": {
          "t": "6633110011",
          "count": "\u0000",
          "spam": "false",
          "jid": "9944661166\u0000@c.us",
          "modify_tag": "668833"
        },
        "Content": null
      },
      {
        "Description": "chat",
        "Attributes": {
          "t": "6699339900",
          "count": "\u0000",
          "spam": "false",
          "jid": "9944119922--6600221177@g.us",
          "modify_tag": "004477",
          "message": "true",
          "name": "My group"
        },
        "Content": null
      },
      {
        "Description": "chat",
        "Attributes": {
          "t": "6699332277",
          "count": "\u0000",
          "spam": "false",
          "jid": "9944110066--6600994455@g.us",
          "modify_tag": "446666",
          "message": "true",
          "name": "Group Name"
        },
        "Content": null
      }...

Any thoughts on how to get real wid?