Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Added a check to make sure this value is not added twice #1003

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion TeleSharp.TL/TLContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ static TLContext()
where t.IsSubclassOf(typeof(TLObject))
where t.GetCustomAttribute(typeof(TLObjectAttribute)) != null
select t).ToDictionary(x => ((TLObjectAttribute)x.GetCustomAttribute(typeof(TLObjectAttribute))).Constructor, x => x);
Types.Add(481674261, typeof(TLVector<>));
if (!Types.TryGetValue(481674261, out _))
{
Types.Add(481674261, typeof(TLVector<>));
}
}

public static Type getType(int Constructor)
Expand Down