a2ccdb2378
🔄 Sync local code
2022-01-11 22:35:38 +08:00
Dan
cb6cef37e6
Update copyright year
2022-01-07 12:21:24 +01:00
Dan
626a1bd938
Update copyright year
2022-01-07 10:23:45 +01:00
Dan
ea3281b5f6
Raise directly when not checking a boolean expression
2021-12-16 21:39:52 +01:00
Dan
8aa358129c
Use specialized exceptions for handling security checks
2021-12-16 21:38:24 +01:00
Dan
ed9c7e4694
Simplify the error handling a bit
2021-12-15 19:26:54 +01:00
Dan
c2a29c8c30
Tune stored_msg_ids max size
2021-12-15 16:56:08 +01:00
Dan
2a1af2b8e9
Close and reestablish the TCP connection in case of mismatch
2021-12-15 16:02:39 +01:00
Dan
bc420da0e2
Maintain a sorted list of stored_msg_ids
2021-12-15 15:04:44 +01:00
Dan
cd027b8c1c
Implement missing MTProto checks
2021-12-15 13:18:13 +01:00
Dan
a65f8e2655
Clearer error message
2021-06-20 08:52:11 +02:00
Dan
e4f99df07c
Better error message in case of empty data in buffer
2021-04-26 16:09:39 +02:00
Dan
89e590b968
Move the "unknown constructor found" logging logic
2021-03-17 15:03:18 +01:00
Dan
7dda167c09
Update copyright notice
...
Year 2021
2021-01-01 22:58:48 +01:00
Dan
538f1e3972
Deep rewrite: preparing for v1.0
...
- Pyrogram core is now fully asynchronous
- Ditched Python 3.5, welcome 3.6 as minimum version.
- Moved all types to pyrogram.types
- Turned the Filters class into a module (filters)
- Moved all filters to pyrogram.filters
- Moved all handlers to pyrogram.handlers
- Moved all emoji to pyrogram.emoji
- Renamed pyrogram.api to pyrogram.raw
- Clock is now synced with server's time
- Telegram schema updated to Layer 117
- Greatly improved the TL compiler (proper type-constructor hierarchy)
- Added "do not edit" warning in generated files
- Crypto parts are executed in a thread pool to avoid blocking the event loop
- idle() is now a separate function (it doesn't deal with Client instances)
- Async storage, async filters and async progress callback (optional, can be sync too)
- Added getpass back, for hidden password inputs
2020-08-22 08:05:05 +02:00
CyanBook
c8c6faa96e
Change logging hierarchy for loading plugins ( #451 )
...
Loading plugins shouldn't be considered a warning
2020-08-21 07:28:27 +02:00
Dan
1996fb1481
Update Copyright
2020-03-21 15:43:32 +01:00
Dan
42c9bafa0c
Update copyright notice
2020-02-01 14:04:33 +01:00
Dan
a015f998fa
Revert "Stop instantiating logger objects and directly use the logging module"
...
This reverts commit 792068d7
2019-09-08 19:24:06 +02:00
Dan
792068d7c8
Stop instantiating logger objects and directly use the logging module
2019-09-08 12:59:28 +02:00
Dan
0dc953c320
Update domain name references to pyrogram.org
2019-05-19 21:40:41 +02:00
Dan
4d7b1bafac
Update copyright year
2019-01-01 12:36:16 +01:00
Dan
6ce71b404f
Revert "Revert "Remove TODO""
...
This reverts commit d2d4f55
2018-09-19 14:31:55 +02:00
Dan
dcd087ba63
Revert "Revert "Update tgcrypto function names""
...
This reverts commit 0f0e757
2018-09-19 14:31:51 +02:00
Dan
0f0e757f4c
Revert "Update tgcrypto function names"
...
This reverts commit a5979a3
2018-09-17 16:53:21 +02:00
Dan
d2d4f55673
Revert "Remove TODO"
...
This reverts commit f576fc8
2018-09-17 16:53:17 +02:00
Dan
4c9d9d84f2
Change the way int to bytes conversion is used
...
Maybe at some point I should switch to struct
2018-09-01 01:27:22 +02:00
Dan
f576fc899d
Remove TODO
2018-08-31 13:12:13 +02:00
Dan
a5979a3ac7
Update tgcrypto function names
2018-08-31 12:56:05 +02:00
Dan
49f2cbe04f
Move CURRENT_DH_PRIME into Prime namespace
2018-08-29 22:04:04 +02:00
Dan
b451ced0fe
Revert back to previous tgcrypto function names
2018-05-21 09:27:56 +02:00
Dan
c5911a6f6b
Reorganize AES module
2018-05-19 15:36:38 +02:00
Dan
f0c801be8c
Rename AES class methods and add ctr256_encrypt
2018-05-18 14:15:35 +02:00
Dan
1849c26b5e
Revert "Remove old code and use a better error message"
...
This reverts commit 7f13eef
2018-04-02 10:02:30 +02:00
Dan
42a2878842
Don't use sys.exit(), re-raise ImportError instead
2018-03-26 03:39:30 +02:00
Dan
7f13eef44b
Remove old code and use a better error message
2018-03-26 02:02:57 +02:00
Dan
6c20661686
Don't use kwargs
2018-03-17 14:29:23 +01:00
Dan
71f3e07dc1
Add more public keys
2018-03-08 10:13:04 +01:00
Dan
74a7adcbdd
Don't use logging directly
2018-02-17 16:06:36 +01:00
Dan
87dcd4d313
Update warning
2018-02-17 15:01:09 +01:00
Dan
2b7425019b
Merge IGE and CTR into a single class (AES)
2018-01-28 01:44:38 +01:00
Dan
0f35f0b8a6
Accommodate TgCrypto
2018-01-27 17:19:37 +01:00
Dan
3686f6921d
Remove try..except block, now pyaes is made available during setup
2018-01-17 00:16:23 +01:00
Dan
d70c2bb564
Update copyright year
2018-01-01 13:24:07 +01:00
Dan
0231ce58d5
Remove some TODOs in code
2017-12-23 14:02:14 +01:00
Dan
92d1bcfb41
Add CDN DC-140 RSA key
2017-12-22 09:25:49 +01:00
Dan
b35fabd9d5
Add AES CTR operation mode
2017-12-19 13:59:15 +01:00
Dan
a9087a2a8c
Add CDN DC-121 RSA Public Key
2017-12-19 11:36:34 +01:00
Dan
5e157c2598
Remove old MTProto v1.0 code
2017-12-18 15:16:21 +01:00
Dan
87b2c4b1e7
Comment out MTProto 1.0 implementation
2017-12-09 02:25:14 +01:00