diff --git a/td/telegram/MessageContent.cpp b/td/telegram/MessageContent.cpp index c8fb9ec52..665096ca1 100644 --- a/td/telegram/MessageContent.cpp +++ b/td/telegram/MessageContent.cpp @@ -2750,7 +2750,7 @@ static Result create_input_message_content( self_destruct_type = std::move(input_video_note->self_destruct_type_); auto length = input_video_note->length_; - if (length < 0 || length >= 640) { + if (length < 0 || length > 640) { return Status::Error(400, "Wrong video note length"); }