diff --git a/Telegram/SourceFiles/ui/controls/compose_ai_button_factory.cpp b/Telegram/SourceFiles/ui/controls/compose_ai_button_factory.cpp index ed640d242b..b4b7b28189 100644 --- a/Telegram/SourceFiles/ui/controls/compose_ai_button_factory.cpp +++ b/Telegram/SourceFiles/ui/controls/compose_ai_button_factory.cpp @@ -84,6 +84,9 @@ int SendAsFilePasteThreshold() { LargeTextPasteResult CheckLargeTextPaste( not_null field, not_null data) { + if (data->hasImage()) { + return {}; + } const auto pasteText = Core::ReadMimeText(data); if (pasteText.isEmpty()) { return {};