Skip to content

Commit

Permalink
fix: retirado envio de "Button Body" indevido nas mensagem, causado p…
Browse files Browse the repository at this point in the history
…elo wrapper da class button.
  • Loading branch information
ldurans committed Nov 8, 2022
1 parent 48bd01a commit e189fe7
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions backend/src/services/WbotServices/SendMessagesSystemWbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,30 +92,6 @@ const SendMessagesSystemWbot = async (
});
logger.info("sendMessage media");
} else {
const btn = new Buttons(
"Button body",
[{ body: "bt1" }, { body: "bt2" }, { body: "bt3" }],
"title",
"footer"
);
const sections = [
{
title: "sectionTitle",
rows: [
{ title: "ListItem1", description: "desc" },
{ title: "ListItem2" }
]
}
];
// const list = new List(
// "List body",
// "btnText",
// sections,
// "Title",
// "footer"
// );
// await wbot.sendMessage(chatId, list);
await wbot.sendMessage(chatId, btn);
sendedMessage = await wbot.sendMessage(chatId, message.body, {
quotedMessageId: quotedMsgSerializedId,
linkPreview: false // fix: send a message takes 2 seconds when there's a link on message body
Expand Down

0 comments on commit e189fe7

Please sign in to comment.