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

namespace MyTelegram.Schema;

///<summary>
/// A new profile picture was suggested using <a href="https://corefork.telegram.org/method/photos.uploadContactProfilePhoto">photos.uploadContactProfilePhoto</a>.
/// See <a href="https://corefork.telegram.org/constructor/messageActionSuggestProfilePhoto" />
///</summary>
[TlObject(0x57de635e)]
public sealed class TMessageActionSuggestProfilePhoto : IMessageAction
{
    public uint ConstructorId => 0x57de635e;
    ///<summary>
    /// The photo that the user suggested we set as profile picture.
    /// See <a href="https://corefork.telegram.org/type/Photo" />
    ///</summary>
    public MyTelegram.Schema.IPhoto Photo { get; set; }

    public void ComputeFlag()
    {

    }

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

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