From 8bcedbeb146482ddecda397f5d870769a88513e9 Mon Sep 17 00:00:00 2001 From: Anton Voylenko Date: Sat, 7 Dec 2024 17:12:32 +0200 Subject: [PATCH] refactor: update swagger spec --- swagger.json | 49 +++---------------------------------------------- 1 file changed, 3 insertions(+), 46 deletions(-) diff --git a/swagger.json b/swagger.json index bb5e0ce..da59380 100644 --- a/swagger.json +++ b/swagger.json @@ -2945,11 +2945,11 @@ "properties": { "chatId": { "type": "string", - "description": "The Chat id which contains the message (Group or Individual)" + "description": "The chat id which contains the message (Group or Individual)" }, "contentType": { "type": "string", - "description": "The type of message content, must be one of the following: string, MessageMedia, MessageMediaFromURL, Location, Contact, Poll, Buttons, or List" + "description": "The type of message content, must be one of the following: string, MessageMedia, MessageMediaFromURL, Location, Contact or Poll" }, "content": { "type": "object", @@ -2998,49 +2998,6 @@ } } }, - "Buttons": { - "value": { - "chatId": "6281288888888@c.us", - "contentType": "Buttons", - "content": { - "body": "Hello World!", - "buttons": [ - { - "body": "button 1" - } - ], - "title": "Hello World!", - "footer": "Hello World!" - } - } - }, - "List": { - "value": { - "chatId": "6281288888888@c.us", - "contentType": "List", - "content": { - "body": "Hello World!", - "buttonText": "Hello World!", - "sections": [ - { - "title": "sectionTitle", - "rows": [ - { - "id": "customId", - "title": "ListItem2", - "description": "desc" - }, - { - "title": "ListItem2" - } - ] - } - ], - "title": "Hello World!", - "footer": "Hello World!" - } - } - }, "Contact": { "value": { "chatId": "6281288888888@c.us", @@ -8799,7 +8756,7 @@ }, "contentType": { "type": "string", - "description": "The type of message content, must be one of the following: string, MessageMedia, MessageMediaFromURL, Location, Contact, Poll, Buttons, or List" + "description": "The type of message content, must be one of the following: string, MessageMedia, MessageMediaFromURL, Location, Contact or Poll" }, "content": { "type": "object",