diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 2c09dafd4..4c58eff07 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -4127,8 +4127,10 @@ class CliClient final : public Actor { auto reply_to = get_input_message_reply_to(); if (reply_to != nullptr || !message.empty()) { vector> entities; - entities.push_back( - td_api::make_object(0, 1, td_api::make_object())); + if (!message.empty()) { + entities.push_back( + td_api::make_object(0, 1, td_api::make_object())); + } draft_message = td_api::make_object( std::move(reply_to), 0, td_api::make_object(as_formatted_text(message, std::move(entities)), nullptr,