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

namespace MyTelegram.Schema.Phone;

///<summary>
/// An invite to a group call or livestream
/// See <a href="https://corefork.telegram.org/constructor/phone.exportedGroupCallInvite" />
///</summary>
[TlObject(0x204bd158)]
public sealed class TExportedGroupCallInvite : IExportedGroupCallInvite
{
    public uint ConstructorId => 0x204bd158;
    ///<summary>
    /// Invite link
    ///</summary>
    public string Link { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Link = buffer.ReadString();
    }
}