This commit is contained in:
RandallFlagg 2021-12-22 15:57:26 +07:00 committed by GitHub
commit 144aaf1b59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,10 @@ namespace TeleSharp.TL
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)