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

namespace MyTelegram.Schema.Help;

///<summary>
/// Hide MTProxy/Public Service Announcement information
/// See <a href="https://corefork.telegram.org/method/help.hidePromoData" />
///</summary>
[TlObject(0x1e251c95)]
public sealed class RequestHidePromoData : IRequest<IBool>
{
    public uint ConstructorId => 0x1e251c95;
    ///<summary>
    /// Peer to hide
    /// See <a href="https://corefork.telegram.org/type/InputPeer" />
    ///</summary>
    public MyTelegram.Schema.IInputPeer Peer { get; set; }

    public void ComputeFlag()
    {

    }

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

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