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

namespace MyTelegram.Schema;

///<summary>
/// Group profile changed
/// See <a href="https://corefork.telegram.org/constructor/messageActionChatEditPhoto" />
///</summary>
[TlObject(0x7fcb13a8)]
public sealed class TMessageActionChatEditPhoto : IMessageAction
{
    public uint ConstructorId => 0x7fcb13a8;
    ///<summary>
    /// New group profile photo
    /// 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>();
    }
}