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

namespace MyTelegram.Schema;

///<summary>
/// A group call was scheduled
/// See <a href="https://corefork.telegram.org/constructor/messageActionGroupCallScheduled" />
///</summary>
[TlObject(0xb3a07661)]
public sealed class TMessageActionGroupCallScheduled : IMessageAction
{
    public uint ConstructorId => 0xb3a07661;
    ///<summary>
    /// The group call
    /// See <a href="https://corefork.telegram.org/type/InputGroupCall" />
    ///</summary>
    public MyTelegram.Schema.IInputGroupCall Call { get; set; }

    ///<summary>
    /// When is this group call scheduled to start
    ///</summary>
    public int ScheduleDate { get; set; }

    public void ComputeFlag()
    {

    }

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

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