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

namespace MyTelegram.Schema;

///<summary>
/// A group call participant was muted
/// See <a href="https://corefork.telegram.org/constructor/channelAdminLogEventActionParticipantMute" />
///</summary>
[TlObject(0xf92424d2)]
public sealed class TChannelAdminLogEventActionParticipantMute : IChannelAdminLogEventAction
{
    public uint ConstructorId => 0xf92424d2;
    ///<summary>
    /// The participant that was muted
    /// See <a href="https://corefork.telegram.org/type/GroupCallParticipant" />
    ///</summary>
    public MyTelegram.Schema.IGroupCallParticipant Participant { get; set; }

    public void ComputeFlag()
    {

    }

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

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