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

namespace MyTelegram.Schema;

///<summary>
/// A group call was terminated
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionDiscardGroupCall" />
///</summary>
[TlObject(0xdb9f9140)]
public sealed class TChannelAdminLogEventActionDiscardGroupCall : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0xdb9f9140;
    ///<summary>
    /// The group call that was terminated
    /// See <a href="https://corefork.telegram.org/type/InputGroupCall" />
    ///</summary>
    public MyTelegram.Schema.IInputGroupCall Call { get; set; }

    public void ComputeFlag()
    {

    }

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

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