telegram: fix verbose log ordering
parent
063b35f1dc
commit
f6a86e5527
|
|
@ -142,6 +142,13 @@ export function createTelegramBot(opts: TelegramBotOptions) {
|
||||||
MediaUrl: media?.path,
|
MediaUrl: media?.path,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (logVerbose()) {
|
||||||
|
const preview = body.slice(0, 200).replace(/\n/g, "\\n");
|
||||||
|
logVerbose(
|
||||||
|
`telegram inbound: chatId=${chatId} from=${ctxPayload.From} len=${body.length} preview="${preview}"`,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
const replyResult = await getReplyFromConfig(
|
const replyResult = await getReplyFromConfig(
|
||||||
ctxPayload,
|
ctxPayload,
|
||||||
{ onReplyStart: sendTyping },
|
{ onReplyStart: sendTyping },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue