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

namespace MyTelegram.Schema;

///<summary>
/// See <a href="https://corefork.telegram.org/constructor/messageActionSuggestedPostSuccess" />
///</summary>
[TlObject(0x95ddcf69)]
public sealed class TMessageActionSuggestedPostSuccess : IMessageAction
{
    public uint ConstructorId => 0x95ddcf69;
    public MyTelegram.Schema.IStarsAmount Price { get; set; }

    public void ComputeFlag()
    {

    }

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

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