What is Telegram's Type Language (TL)?
v1Telegram's Type Language (TL), often found in .tl files, is a concise schema used to define objects (similar to classes or structs in other languages). It defines the name, a unique ID, and the arguments (including their types) for a TLObject. This language is used to describe how objects are structured and how they should be serialized into bytes for network transmission via MTProto.
A standard definition follows this pattern:
name#id argument_name:argument_type = CommonType
name#id argument_name:argument_type = CommonType