Fix video note length check.

This commit is contained in:
levlam 2024-03-28 23:22:21 +03:00
parent 98033937cc
commit 6121755719

View File

@ -2750,7 +2750,7 @@ static Result<InputMessageContent> 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");
}