diff --git a/td/telegram/files/FileLocation.hpp b/td/telegram/files/FileLocation.hpp index 92de60e4..875af3c5 100644 --- a/td/telegram/files/FileLocation.hpp +++ b/td/telegram/files/FileLocation.hpp @@ -137,6 +137,7 @@ void FullRemoteFileLocation::parse(ParserT &parser) { if (has_file_reference) { parse(file_reference_, parser); + file_reference_.clear(); } switch (location_type()) {