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

namespace MyTelegram.Schema;

///<summary>
/// A <a href="https://corefork.telegram.org/api/forum#forum-topics">forum topic</a> was deleted
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionDeleteTopic" />
///</summary>
[TlObject(0xae168909)]
public sealed class TChannelAdminLogEventActionDeleteTopic : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0xae168909;
    ///<summary>
    /// The <a href="https://corefork.telegram.org/api/forum#forum-topics">forum topic</a> that was deleted
    /// See <a href="https://corefork.telegram.org/type/ForumTopic" />
    ///</summary>
    public MyTelegram.Schema.IForumTopic Topic { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Topic = buffer.Read<MyTelegram.Schema.IForumTopic>();
    }
}