Created
September 13, 2020 09:42
-
-
Save knocte/824b052d8113275e21f47634456cac83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/TgSharp.TL/TLContext.cs b/src/TgSharp.TL/TLContext.cs | |
index 2d04707..a13a66f 100644 | |
--- a/src/TgSharp.TL/TLContext.cs | |
+++ b/src/TgSharp.TL/TLContext.cs | |
@@ -19,7 +19,9 @@ namespace TgSharp.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.ContainsKey (481674261)) { | |
+ Types.Add (481674261, typeof (TLVector<>)); | |
+ } | |
} | |
public static Type getType(int Constructor) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment