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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Get stickers attached to a photo or video
/// <para>Possible errors</para>
/// Code Type Description
/// 400 MEDIA_EMPTY The provided media object is invalid.
/// See <a href="https://corefork.telegram.org/method/messages.getAttachedStickers" />
///</summary>
[TlObject(0xcc5b67cc)]
public sealed class RequestGetAttachedStickers : IRequest<TVector<MyTelegram.Schema.IStickerSetCovered>>
{
    public uint ConstructorId => 0xcc5b67cc;
    ///<summary>
    /// Stickered media
    /// See <a href="https://corefork.telegram.org/type/InputStickeredMedia" />
    ///</summary>
    public MyTelegram.Schema.IInputStickeredMedia Media { get; set; }

    public void ComputeFlag()
    {

    }

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

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