Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Latest commit

 

History

History
15 lines (12 loc) · 740 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 740 Bytes

SharpTL.Compiler

Compiles a TL-schema defined in Type Language (or JSON equivalent) to C# object model attributed for using with SharpTL serialization library.

Usage example:

SharpTL.Compiler.CLI.exe compile -t json -s telegram.json -ns SharpTelegram.Schema -mn Telegram -impl

This command produces 2 files:

  • SharpTelegram.Schema.cs schema types and methods interfaces.
  • SharpTelegram.Schema.MethodsImpl.cs schema methods implementation (generated only with -impl arg). In order to compile this file, SharpMTProto library must be referenced.