Skip to content

Instantly share code, notes, and snippets.

@knocte
Created September 13, 2020 09:39
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/1815e794747238877ccb98015c07ec2e to your computer and use it in GitHub Desktop.
Save knocte/1815e794747238877ccb98015c07ec2e 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..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