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

namespace MyTelegram.Schema;

///<summary>
/// A chat invite was deleted
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionExportedInviteDelete" />
///</summary>
[TlObject(0x5a50fca4)]
public sealed class TChannelAdminLogEventActionExportedInviteDelete : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0x5a50fca4;
    ///<summary>
    /// The deleted chat invite
    /// See <a href="https://corefork.telegram.org/type/ExportedChatInvite" />
    ///</summary>
    public MyTelegram.Schema.IExportedChatInvite Invite { get; set; }

    public void ComputeFlag()
    {

    }

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

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