Commit Graph

23 Commits

Author SHA1 Message Date
Dan
15bdb3de4f Attempt to fix clock issues when running on AWS Lambda 2020-08-29 17:28:39 +02:00
Dan
5e3f2ab947 Replace monotonic() with perf_counter()
It seems like monotonic() goes out of sync after some time.
2020-08-29 16:58:49 +02:00
Dan
fbded4e23b Fix time going out of sync when starting new sessions 2020-08-22 11:26:11 +02: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
Alisson Lauffer
531069b1e2
Some fixes and speed improvments (#439)
* Use raw string for re pattern

* Trim trailing whitespaces from docstrings and code

* Use isinstance() instead of type() for typechecking

* Remove unused imports
2020-07-12 06:43:30 +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
aa135ea457 Reformat project 2019-08-01 19:11:43 +02:00
Dan
13d6ce1495 Update DC IPs 2019-07-09 19:02:54 +02:00
Dan
d5517f4d5f Rename Object to TLObject 2019-06-03 14:19:50 +02:00
Dan
4d7b1bafac Update copyright year 2019-01-01 12:36:16 +01:00
Dan
a0c1018a1b Minor style fix 2018-08-28 12:25:08 +02:00
Dan
973ccfcd03 Use compact IPv6 addresses 2018-08-28 12:23:22 +02:00
Dan
8ac48c555c Add ipv6 data center addresses 2018-06-13 13:34:56 +02:00
Dan
d67dfd39da Update system messages TL scheme 2018-06-03 18:07:04 +02:00
Dan
1736a8ea9b Use port 443 for production servers 2018-04-11 23:37:59 +02:00
Dan
d89d238d30 Fix BadMsgNotification error_code 32 2018-02-18 17:31:00 +01:00
Dan
aca6fa390e Add SeqNo lock 2018-02-13 14:00:03 +01:00
Dan
560991498d Add MsgId lock 2018-02-13 13:59:29 +01:00
Dan
d70c2bb564 Update copyright year 2018-01-01 13:24:07 +01:00
Dan
e8f04793ea Add CDN DC-121 IP in production DCs list 2017-12-22 09:27:13 +01:00
Dan
cbaa50747a Add CDN DC-121 IP 2017-12-19 11:35:26 +01:00
Dan
a8cad5abfb Add session package 2017-12-05 12:41:07 +01:00