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

namespace MyTelegram.Schema;

///<summary>
/// Request for secure <a href="https://corefork.telegram.org/passport">telegram passport</a> values was sent
/// See <a href="https://corefork.telegram.org/constructor/messageActionSecureValuesSent" />
///</summary>
[TlObject(0xd95c6154)]
public sealed class TMessageActionSecureValuesSent : IMessageAction
{
    public uint ConstructorId => 0xd95c6154;
    ///<summary>
    /// Secure value types
    ///</summary>
    public TVector<MyTelegram.Schema.ISecureValueType> Types { get; set; }

    public void ComputeFlag()
    {

    }

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

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