We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6c556e commit c264fcdCopy full SHA for c264fcd
1 file changed
src/services/TelegramService.ts
@@ -49,8 +49,12 @@ function parseTelegramMessage(content: string): {
49
} else if (trimmed.startsWith("chat_id:")) {
50
chatId = trimmed.replace("chat_id:", "").trim();
51
} else if (trimmed.startsWith("content:")) {
52
- messageText = trimmed.replace("content:", "").trim();
+ const contentIndex = lines.indexOf(line);
53
+ const firstLine = trimmed.replace("content:", "").trim();
54
+ const remainingLines = lines.slice(contentIndex + 1);
55
+ messageText = [firstLine, ...remainingLines].join("\n").trim();
56
foundContent = true;
57
+ break;
58
}
59
60
0 commit comments