Commit Graph

13 Commits

Author SHA1 Message Date
Lonami
15994d0b78 Added ability to upload large files 2016-09-16 16:37:45 +02:00
Lonami
922f17956b Pythonized some parts 2016-09-16 14:04:46 +02:00
Lonami
9420e15283 Gave more power to the TelegramClients and bug fixes
Fixed uploads for large files on TcpClient
Added more RPCError's for handling invalid phone code
Added more media handlers: now you're also able to
  both send and download documents!
The InteractiveTelegramClient now supports working
  with media aswell
2016-09-12 19:32:16 +02:00
Lonami
cdb1674a27 Minor improvement to updates handling
Now the updates thread won't start unless you add,
at least, one updates handler. Also, if the TcpClient
was receiving (i.e., from an update), it will let the
update to be received first instead of crashing
2016-09-11 11:50:38 +02:00
Lonami
e47344c0f0 Added a thread lock to the TcpClient
This gives multi-threading safety without giving up on speed
(now there's no need for additional sleeps)
2016-09-10 10:17:15 +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
e6706080ad Improved TcpClient receive 2016-09-07 19:48:49 +02:00
Lonami
6b8a347426 Several updates, fixes and additions (TcpClient, MtProto...)
README.md was updated to reflect more useful information
More errors from the official Telegrm website have been added
MtProtoSender now handles updates (and doesn't crash!)
Fixes on TcpClient to be able to receive whole large packets
Updated scheme.tl to the layer 55
Session is now saved more often (to prevent damages from crashes)
Fixes to the code generator (generated invalid code for reading "bytes")
2016-09-06 18:54:49 +02:00
Lonami
251c1830a5 Added custom errors, fixes to code generator
The code generator now handles okay the flags using True type
Also, double checking for the flag is now avoided in cases where the
flag was a Vector type
2016-09-05 18:35:12 +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
e712a9bf61 Wrote unit tests and found and fixed bugs 2016-08-30 13:12:59 +02:00
Lonami
bd1fee4048 Added and updated documentation 2016-08-28 13:55:05 +02:00
Lonami
1dac866118 Initial release
The initial release contains the most basic implementation of TLSharp core.
This is also fully untested, since no test can be done until more work is done.
2016-08-26 12:58:53 +02:00