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

namespace MyTelegram.Schema;

///<summary>
/// A document with stickers attached
/// See <a href="https://corefork.telegram.org/constructor/inputStickeredMediaDocument" />
///</summary>
[TlObject(0x438865b)]
public sealed class TInputStickeredMediaDocument : IInputStickeredMedia
{
    public uint ConstructorId => 0x438865b;
    ///<summary>
    /// The document
    /// See <a href="https://corefork.telegram.org/type/InputDocument" />
    ///</summary>
    public MyTelegram.Schema.IInputDocument Id { get; set; }

    public void ComputeFlag()
    {

    }

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

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