diff --git a/src/callback_commands/ollama-cancel.ts b/src/callback_commands/ollama-cancel.ts index 001c663..2189cc4 100644 --- a/src/callback_commands/ollama-cancel.ts +++ b/src/callback_commands/ollama-cancel.ts @@ -48,7 +48,7 @@ export class OllamaCancel extends CallbackCommand { await bot.editMessageText({ chat_id: chatId, message_id: messageId, - text: `${content}${cancelledText}`, + text: `${content ? content : ""}${cancelledText}`, parse_mode: "Markdown", reply_markup: {inline_keyboard: []}, }).catch(logError);