Commit Graph

8 Commits

Author SHA1 Message Date
Lonami
a7c7fdd2e4 Refactored interactive example
The interactive example now lives in a separate
class, independant from `main.py` (which no longer
exists) so it's more intuitive.
2016-09-12 14:07:45 +02:00
Lonami
fd14a5a49a Added an updates thread and construtor_id to TLObjects
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.
2016-09-09 11:47:37 +02:00
Lonami
e9e44795ec Attempt at removing cyclic dependencies 2016-09-08 16:55:46 +02:00
Lonami
7abe53e063 Added full* markdown support and updated README
* 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!
2016-09-07 19:32:18 +02:00
Lonami
b027dd2c8f Fixed tiny bugs with authentication, added more unit tests 2016-09-04 21:07:09 +02:00
Lonami
7c8c65560e Refactored imports 2016-09-04 13:04:45 +02:00
Lonami
75a648f438 Several fixes to authenticator, added more unit tests
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
2016-09-03 10:54:58 +02:00
Lonami
1974569927 Added a .tl file tokenizer and parser
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.
2016-08-26 19:12:20 +02:00