// <auto-generated/>
// ReSharper disable All

namespace MyTelegram.Schema.Messages;

///<summary>
/// Message without file attachments sent to an encrypted file.
/// See <a href="https://corefork.telegram.org/constructor/messages.sentEncryptedMessage" />
///</summary>
[TlObject(0x560f8935)]
public sealed class TSentEncryptedMessage : ISentEncryptedMessage
{
    public uint ConstructorId => 0x560f8935;
    ///<summary>
    /// Date of sending
    ///</summary>
    public int Date { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(Date);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Date = buffer.ReadInt32();
    }
}