fix gemini image analyze text

This commit is contained in:
2026-05-01 05:27:03 +03:00
parent c24bc8394b
commit 0a34e15a22
+5 -2
View File
@@ -9,7 +9,8 @@ import {
collectReplyChainText, collectReplyChainText,
escapeMarkdownV2Text, escapeMarkdownV2Text,
logError, logError,
oldReplyToMessage, replyToMessage, oldReplyToMessage,
replyToMessage,
startIntervalEditor startIntervalEditor
} from "../util/utils"; } from "../util/utils";
import {ChatCommand} from "../base/chat-command"; import {ChatCommand} from "../base/chat-command";
@@ -81,9 +82,11 @@ export class GeminiChat extends ChatCommand {
const startTime = Date.now(); const startTime = Date.now();
try { try {
const imagesCount = input.some(e => e.type === "image");
waitMessage = await bot.sendMessage({ waitMessage = await bot.sendMessage({
chat_id: chatId, chat_id: chatId,
text: Environment.waitThinkText, text: imagesCount ? Environment.analyzingPictureText : Environment.waitThinkText,
reply_parameters: { reply_parameters: {
chat_id: chatId, chat_id: chatId,
message_id: msg.message_id message_id: msg.message_id