Skip to content

Instantly share code, notes, and snippets.

@knocte
Created September 13, 2020 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knocte/824b052d8113275e21f47634456cac83 to your computer and use it in GitHub Desktop.
Save knocte/824b052d8113275e21f47634456cac83 to your computer and use it in GitHub Desktop.
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