From b1bd2c8805e2392fbc23c5000f8762e06aa0de6a Mon Sep 17 00:00:00 2001 From: devlikepro Date: Wed, 21 Aug 2024 15:42:36 +0700 Subject: [PATCH] [core] Move GET /sendText down --- src/api/chatting.controller.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/api/chatting.controller.ts b/src/api/chatting.controller.ts index b0047aa5..b6bd9f0b 100644 --- a/src/api/chatting.controller.ts +++ b/src/api/chatting.controller.ts @@ -45,16 +45,6 @@ export class ChattingController { return whatsapp.sendContactVCard(request); } - @Get('/sendText') - @ApiOperation({ summary: 'Send a text message', deprecated: true }) - sendTextGet(@Query() query: MessageTextQuery) { - const whatsapp = this.manager.getSession(query.session); - const msg = new MessageTextRequest(); - msg.chatId = query.phone; - msg.text = query.text; - return whatsapp.sendText(msg); - } - @Post('/sendText') @ApiOperation({ summary: 'Send a text message' }) sendText(@Body() request: MessageTextRequest): Promise { @@ -172,4 +162,14 @@ export class ChattingController { const whatsapp = this.manager.getSession(query.session); return whatsapp.getMessages(query); } + + @Get('/sendText') + @ApiOperation({ summary: 'Send a text message', deprecated: true }) + sendTextGet(@Query() query: MessageTextQuery) { + const whatsapp = this.manager.getSession(query.session); + const msg = new MessageTextRequest(); + msg.chatId = query.phone; + msg.text = query.text; + return whatsapp.sendText(msg); + } }