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

namespace MyTelegram.Schema;

///<summary>
/// Contains info about a forward of a <a href="https://corefork.telegram.org/api/stories">story</a> as a message.
/// See <a href="https://corefork.telegram.org/constructor/publicForwardMessage" />
///</summary>
[TlObject(0x1f2bf4a)]
public sealed class TPublicForwardMessage : IPublicForward
{
    public uint ConstructorId => 0x1f2bf4a;
    ///<summary>
    /// Info about the message with the reposted story.
    /// See <a href="https://corefork.telegram.org/type/Message" />
    ///</summary>
    public MyTelegram.Schema.IMessage Message { get; set; }

    public void ComputeFlag()
    {

    }

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

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