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

namespace MyTelegram.Schema.Photos;

///<summary>
/// Deletes profile photos. The method returns a list of successfully deleted photo IDs.
/// See <a href="https://corefork.telegram.org/method/photos.deletePhotos" />
///</summary>
[TlObject(0x87cf7f2f)]
public sealed class RequestDeletePhotos : IRequest<TVector<long>>
{
    public uint ConstructorId => 0x87cf7f2f;
    ///<summary>
    /// Input photos to delete
    ///</summary>
    public TVector<MyTelegram.Schema.IInputPhoto> 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<TVector<MyTelegram.Schema.IInputPhoto>>();
    }
}
