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

namespace MyTelegram.Schema.Help;

///<summary>
/// Dismiss a <a href="https://corefork.telegram.org/api/config#suggestions">suggestion, see here for more info »</a>.
/// See <a href="https://corefork.telegram.org/method/help.dismissSuggestion" />
///</summary>
[TlObject(0xf50dbaa1)]
public sealed class RequestDismissSuggestion : IRequest<IBool>
{
    public uint ConstructorId => 0xf50dbaa1;
    ///<summary>
    /// In the case of pending suggestions in <a href="https://corefork.telegram.org/constructor/channelFull">channels</a>, the channel ID.
    /// See <a href="https://corefork.telegram.org/type/InputPeer" />
    ///</summary>
    public MyTelegram.Schema.IInputPeer Peer { get; set; }

    ///<summary>
    /// <a href="https://corefork.telegram.org/api/config#suggestions">Suggestion, see here for more info »</a>.
    ///</summary>
    public string Suggestion { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Peer = buffer.Read<MyTelegram.Schema.IInputPeer>();
        Suggestion = buffer.ReadString();
    }
}
