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

namespace MyTelegram.Schema;

///<summary>
/// Custom action (most likely not supported by the current layer, an upgrade might be needed)
/// See <a href="https://corefork.telegram.org/constructor/messageActionCustomAction" />
///</summary>
[TlObject(0xfae69f56)]
public sealed class TMessageActionCustomAction : IMessageAction
{
    public uint ConstructorId => 0xfae69f56;
    ///<summary>
    /// Action message
    ///</summary>
    public string 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.ReadString();
    }
}