Commit Graph

16 Commits

Author SHA1 Message Date
Dan
2e964b3fa9 Update MAX_USER_ID 2021-12-04 18:39:35 +01:00
Dan
b47c5a93b1 Fix enum items showing ids instead of names 2021-02-12 12:36:32 +01:00
Dan
a48d27f501 Always run crypto-related functions in the dedicated thread 2021-01-02 18:45:43 +01:00
Dan
7dda167c09 Update copyright notice
Year 2021
2021-01-01 22:58:48 +01:00
Dan
ed79f73bd7 Rework and simplify message parsing 2020-12-23 19:04:28 +01:00
Dan
4b77bbd468 Fix get_dialogs breaking in case of empty messages 2020-12-23 17:20:06 +01:00
Dan
865f4274c3 Fix messages not having a reply-to-message when they actually do 2020-12-23 16:18:27 +01:00
Dan
29fa3ec520 Remove unneeded util functions and improve docs 2020-12-20 17:57:41 +01:00
Alisson Lauffer
1dc4df8cb1
Improve typing hints (#537)
* Change type1 or type2 to Union[type1, type2]

* Address @KunoiSayami suggestions

* Change Union[type1, None] to Optional[type1]

* Update PR with latest commit changes

* Address Dan suggestions
2020-12-20 17:05:17 +01:00
Dan
844e53a70e Move crypto calls to threads in case of big enough chunks 2020-12-07 19:16:46 +01:00
Dan
384f4eba71 Add support for manual text entities. 2020-11-29 15:48:29 +01:00
Dan
9f77fed181 Add a clearer error in case of bad file ids 2020-11-28 14:58:24 +01:00
Dan
a4566de2ef Add support for the new Bot API fields: file_id, file_unique_id
Remove file_ref from Pyrogram's API
2020-11-27 22:09:17 +01:00
Dan
4632879ee4 Changes for L119 2020-09-30 20:26:57 +02:00
Dan
6a5469edaf Don't attempt to retrieve chat attributes from empty messages
Fixes #479
2020-08-30 10:57:31 +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