Skip to content

Commit

Permalink
Merge pull request #1 from green-api/SW-4489
Browse files Browse the repository at this point in the history
Support edited and deleted messages
  • Loading branch information
prostraction authored Dec 8, 2024
2 parents c2382d3 + e7bd747 commit 46946e3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions jsonSchema/commonSchemaComponents.json
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,34 @@
"listResponseMessage": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object"
},
"editedMessageData": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"textMessage": {
"type": "string"
},
"stanzaId": {
"type": "string"
}
},
"required": ["textMessage", "stanzaId"],
"additionalProperties": true
},
"deletedMessageData": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"stanzaId": {
"type": "string"
},
"typeMessage": {
"type": "string"
}
},
"required": ["stanzaId"],
"additionalProperties": true
}
},

Expand All @@ -470,6 +498,8 @@
{ "required": ["templateMessage"] },
{ "required": ["buttonsResponseMessage"] },
{ "required": ["templateButtonReplyMessage"] },
{ "required": ["listResponseMessage"] },
{ "required": ["editedMessageData"] },
{ "required": ["listResponseMessage"] }
],
"additionalProperties": true
Expand Down

0 comments on commit 46946e3

Please sign in to comment.