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

namespace MyTelegram.Schema.Account;

///<summary>
/// Gets current notification settings for a given user/group, from all users/all groups.
/// <para>Possible errors</para>
/// Code Type Description
/// 400 PEER_ID_INVALID The provided peer id is invalid.
/// See <a href="https://corefork.telegram.org/method/account.getNotifySettings" />
///</summary>
[TlObject(0x12b3ad31)]
public sealed class RequestGetNotifySettings : IRequest<MyTelegram.Schema.IPeerNotifySettings>
{
    public uint ConstructorId => 0x12b3ad31;
    ///<summary>
    /// Notification source
    /// See <a href="https://corefork.telegram.org/type/InputNotifyPeer" />
    ///</summary>
    public MyTelegram.Schema.IInputNotifyPeer 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.IInputNotifyPeer>();
    }
}
