Created
September 13, 2020 09:39
-
-
Save knocte/1815e794747238877ccb98015c07ec2e 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..1abe6c7 100644 | |
--- a/src/TgSharp.TL/TLContext.cs | |
+++ b/src/TgSharp.TL/TLContext.cs | |
@@ -19,7 +19,7 @@ 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<>)); | |
+ Types[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