A new thread is now created when MtProtoSender is created.
This thread constantly listens for Telegram updates (such as
incoming messages), so the updates can be received any time
rather than only when sending another request.
* Although the markdown parser works perfectly,
the official Telegram client does not fully reflect it.
However, if you still think that this is a lie, go check
the markdown parser and test it yourself!
Some fixes include, in more detail:
- Using little over big endianess in some parts
- Flagging all the constructor numbers as unsigned
- Fixed bugs with factorizer
- Implemented TLSharp's RSA
A TLObject class has been added, as well as a method for tokenizen .tl files.
A TLObject can be created by simply calling `TLObject.from_tl(tl_line)`,
this will tokenize the .tl line and return a new TLObject with all
the required properties extracted.
Also added another method to load .tl files and yield TLObjects, including
a SourceBuilder that can be later used to generate Python code.