diff --git a/td/telegram/logevent/SecretChatEvent.h b/td/telegram/logevent/SecretChatEvent.h index 246c7638..fdba3223 100644 --- a/td/telegram/logevent/SecretChatEvent.h +++ b/td/telegram/logevent/SecretChatEvent.h @@ -60,6 +60,7 @@ struct EncryptedInputFile { int64 access_hash = 0; int32 parts = 0; int32 key_fingerprint = 0; + template void store(T &storer) const { using td::store; @@ -71,6 +72,10 @@ struct EncryptedInputFile { store(key_fingerprint, storer); } + EncryptedInputFile(Type type, int64 id, int64 access_hash, int32 parts, int32 key_fingerprint) + : type(type), id(id), access_hash(access_hash), parts(parts), key_fingerprint(key_fingerprint) { + } + bool empty() const { return type == Empty; }