From 61217557194dd891af8266aa666ac1bb00c1d3a1 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 28 Mar 2024 23:22:21 +0300 Subject: [PATCH] Fix video note length check. --- td/telegram/MessageContent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }