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

namespace MyTelegram.Schema;

///<summary>
/// A set of users was invited to the group call
/// See <a href="https://corefork.telegram.org/constructor/messageActionInviteToGroupCall" />
///</summary>
[TlObject(0x502f92f7)]
public sealed class TMessageActionInviteToGroupCall : IMessageAction
{
    public uint ConstructorId => 0x502f92f7;
    ///<summary>
    /// The group call
    /// See <a href="https://corefork.telegram.org/type/InputGroupCall" />
    ///</summary>
    public MyTelegram.Schema.IInputGroupCall Call { get; set; }

    ///<summary>
    /// The invited users
    ///</summary>
    public TVector<long> Users { get; set; }

    public void ComputeFlag()
    {

    }

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

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