Commit Graph

398 Commits

Author SHA1 Message Date
Lonami Exo
5404670469 Implement and use TCP obfuscated as a PoC (#112)
Credits to MadelineProto/Connection.php by @danog
2017-08-28 20:25:44 +02:00
Lonami Exo
adfebfc82c Remove ThreadTcpClient test (committed by mistake) 2017-08-28 17:46:31 +02:00
Lonami Exo
2c6377e069 Update to v0.12.2 2017-08-28 17:29:08 +02:00
Lonami Exo
06b2d5d786 Fix CDN client not being disconnected 2017-08-28 16:33:23 +02:00
Lonami Exo
8afcd0b91f Turn HashChecker into CdnDecrypter to abstract CDN-specific aspects 2017-08-28 16:25:10 +02:00
Lonami Exo
b504ce14bc Verify the files downloaded from CDNs and raise on sha256 mismatch 2017-08-28 14:17:31 +02:00
Lonami Exo
00b5b5021b Report errors to pwrtelegram.xyz by default 2017-08-25 15:34:20 +02:00
Lonami Exo
2517b9787d TLObject.stringify() was showing bytes as lists 2017-08-24 20:56:08 +02:00
Lonami Exo
2e55998d7f Update to v0.12.1 2017-08-24 19:09:37 +02:00
Lonami Exo
633bf4684a Add a new super simple README.rst 2017-08-24 19:08:21 +02:00
Lonami Exo
b05b43153c Update README.rst 2017-08-24 18:43:06 +02:00
Lonami Exo
98bbcb6cd6 Favour rsa module over PyCrypto since the former is pure Python 2017-08-24 18:41:48 +02:00
Lonami Exo
b7dbf9767e Fix TelegramClient.sign_in not accepting an integer for the code 2017-08-24 18:05:32 +02:00
Lonami Exo
4384ccb132 Tidy up TelegramBareClient.download_file CDN's mess 2017-08-24 18:00:47 +02:00
Lonami Exo
d5323c5506 Enhance a lot choosing a valid path when downloading files 2017-08-24 17:44:38 +02:00
Lonami Exo
8cfc4d0fda Add a unit test for CDN-downloads 2017-08-24 16:12:38 +02:00
Lonami Exo
e5e7715a31 Decrypt files downloaded from CDNs (closes #208) 2017-08-24 15:50:44 +02:00
Lonami Exo
940a2896e8 Part size when downloading files is now 4096 bytes, not 1024 2017-08-24 13:15:33 +02:00
Lonami Exo
09272ef6fc Support connecting and downloading encrypted files from CDNs (#208) 2017-08-24 13:02:48 +02:00
Lonami Exo
ba32d6f270 Add crypto test to ensure calculating RSA fingerprints works 2017-08-23 22:26:31 +02:00
Lonami Exo
d5fd147881 Add a few more default RSA public keys from Telegram 2017-08-23 21:50:33 +02:00
Lonami Exo
66876b6722 Use pycrypto's RSA instead the old weird RSA implementation 2017-08-23 21:49:27 +02:00
Lonami Exo
0cae62f091 Fix silly bug with two wrongly ordered lines (on download document) 2017-08-23 16:06:41 +02:00
Lonami Exo
571d8bc21f Update to v0.12 2017-08-23 01:47:52 +02:00
Lonami Exo
c0bae1d608 Replace type(...) == ... with isinstance() checks 2017-08-23 01:45:49 +02:00
Lonami Exo
65d5ab685f Let .upload_file() support streams and byte arrays 2017-08-23 01:43:08 +02:00
Lonami Exo
8ed77418bf Make .download_profile_photo() more friendly 2017-08-23 01:35:12 +02:00
Lonami Exo
9d15008f09 Update interactive example to use .send_file() and .download_media() 2017-08-23 00:55:49 +02:00
Lonami Exo
1d0ad9628d Rename "callback" to "progress_callback" for consistency 2017-08-23 00:55:34 +02:00
Lonami Exo
fd6a9a4318 Make downloading files a lot more friendly with .download_media() 2017-08-23 00:48:00 +02:00
Lonami Exo
4234efcc86 Make sending files a lot more friendly with a simple .send_file() 2017-08-23 00:27:33 +02:00
Lonami Exo
81ccd21cdb Allow specifying a phone number or username for common methods 2017-08-23 00:01:10 +02:00
Lonami Exo
fb5c43b539 Ensure .connect() always returns True/False 2017-08-22 23:17:05 +02:00
Lonami Exo
1a6231472e Ensure the connection is flagged as closed on errors, move #201 2017-08-22 23:12:32 +02:00
Lonami Exo
88ec9c297e Improve libssl.py's file formatting 2017-08-22 23:05:07 +02:00
Lonami Exo
274e16ac66 Avoid defining Python's AES class if libssl's is available 2017-08-22 23:05:07 +02:00
Lonami
c296459d0a Fix sneaky grammatical error 2017-08-22 19:50:57 +02:00
Tural
12b84c929a Fix log_out problems on macOS devices 2017-08-21 09:00:23 +02:00
Christian Stemmle
ffb1cf483d Faster crypto by using libssl (closes #199) 2017-08-20 01:21:11 +02:00
Lonami Exo
afcddfd7c1 Remove seemingly useless array copies on aes.py (#199) 2017-08-17 18:12:19 +02:00
Lonami Exo
9f812d83a9 Use sympy for faster factorization if available (#199) 2017-08-17 17:37:27 +02:00
Lonami Exo
7e85a3cda4 Attempt at making get_new_msg_id thread-safe (#195) 2017-08-14 15:17:16 +02:00
MeytiGHG
1794acdfec Check for isinstance(x, JsonSession) instead crashing during transition 2017-08-07 00:54:23 +02:00
Lonami Exo
83c346ccc5 Let InputPeerChannel be casted automatically into InputChannel 2017-08-05 09:37:34 +02:00
Lonami Exo
9e88d9d219 Replace "type is Type" check with "isinstance" 2017-08-05 09:36:07 +02:00
Lonami Exo
18e65cbf32 Mention SyntaxError when installing via pip on the README 2017-07-29 10:38:31 +02:00
Lonami Exo
7844cd358e Attempt at making layer migrations more smooth (#158) 2017-07-26 16:10:45 +02:00
Lonami Exo
9d35a836d1 Fix interactive example not working after #173 2017-07-24 16:56:05 +02:00
Lonami Exo
160a3699ac Fix confusing names "MtProtoRequest" and ".confirmed" (#176)
This also fixes the annoyingly confusing message:
"Odd msg_seqno expected (relevant message), but even received."
2017-07-24 16:54:48 +02:00
Lonami Exo
773376ee21 Fix two more spelling mistakes 2017-07-23 18:38:27 +02:00