diff --git a/src/commands/gemini-chat.ts b/src/commands/gemini-chat.ts index 5f83381..b03d208 100644 --- a/src/commands/gemini-chat.ts +++ b/src/commands/gemini-chat.ts @@ -9,7 +9,8 @@ import { collectReplyChainText, escapeMarkdownV2Text, logError, - oldReplyToMessage, replyToMessage, + oldReplyToMessage, + replyToMessage, startIntervalEditor } from "../util/utils"; import {ChatCommand} from "../base/chat-command"; @@ -81,9 +82,11 @@ export class GeminiChat extends ChatCommand { const startTime = Date.now(); try { + const imagesCount = input.some(e => e.type === "image"); + waitMessage = await bot.sendMessage({ chat_id: chatId, - text: Environment.waitThinkText, + text: imagesCount ? Environment.analyzingPictureText : Environment.waitThinkText, reply_parameters: { chat_id: chatId, message_id: msg.message_id