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

namespace MyTelegram.Schema.Messages;

///<summary>
/// Get dialog info of specified peers
/// <para>Possible errors</para>
/// Code Type Description
/// 400 CHANNEL_INVALID The provided channel is invalid.
/// 406 CHANNEL_PRIVATE You haven't joined this channel/supergroup.
/// 400 MSG_ID_INVALID Invalid message ID provided.
/// 400 PEER_ID_INVALID The provided peer id is invalid.
/// See <a href="https://corefork.telegram.org/method/messages.getPeerDialogs" />
///</summary>
[TlObject(0xe470bcfd)]
public sealed class RequestGetPeerDialogs : IRequest<MyTelegram.Schema.Messages.IPeerDialogs>
{
    public uint ConstructorId => 0xe470bcfd;
    ///<summary>
    /// Peers
    ///</summary>
    public TVector<MyTelegram.Schema.IInputDialogPeer> Peers { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Peers = buffer.Read<TVector<MyTelegram.Schema.IInputDialogPeer>>();
    }
}
