Commit graph

22 commits

Author SHA1 Message Date
wulan17
5aae488747
pyrofork: Initial Dynamic datacenters ip address support
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-07-13 19:26:19 +07:00
Tomi Prasetio
dfc027c2ff
Refactor: Use io module for seek operation in worker function 2024-03-17 11:08:58 +07:00
wulan17
1b3f0933c7
Pyrofork: Update Copyright headers
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-02-07 20:25:08 +07:00
Dan
82b8c7792e Allow to specify a limit to concurrent transmissions 2023-01-12 18:19:15 +01:00
Dan
8441ce2f47 Limit the amount of concurrent transmissions 2023-01-08 17:11:02 +01:00
Dan
dc3b8a5e01 Tweak file upload settings
Multiple sessions as used in the current implementation were causing a
variety of network related issues. Use one session only instead. Multiple
workers within the same session are fine as long as they are not too many,
otherwise the server will start replying with -429 (too many requests).
Setting the queue size to 1 helps in having a more linear upload progress.
2022-12-27 14:55:07 +01:00
Dan
01cd8bb57f Optimize log calls 2022-12-26 16:38:12 +01:00
Dan
bb44f36247
Add usable-by labels for methods 2022-10-14 11:54:26 +02:00
Dan
caa26b2c6a Improve upload file size checks 2022-06-20 10:32:17 +02:00
Dan
78efb04b40 Rename Client.send to Client.invoke 2022-04-24 11:56:07 +02:00
Dan
32624ef5e6 Improve type hints 2022-04-24 11:56:06 +02:00
Mahesh
1c225776c9
Removed unnecessary create_task (#706) 2022-04-15 13:55:03 +02:00
Dan
626a1bd938 Update copyright year 2022-01-07 10:23:45 +01:00
Dan
523ed3e7cb Add support for in-memory uploads in send_media_group (#519)
* Add support for in-memory uploads for send_media_group

* update input_media_photo docs

* update type hints

Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com>
2021-06-01 13:57:31 +02:00
Dan
97bd544333 Fix save_file path argument docs.
Closes #671
2021-05-05 14:18:26 +02:00
Dan
7dda167c09 Update copyright notice
Year 2021
2021-01-01 22:58:48 +01:00
Dan
dadb4b4eb6 Do not recalculate the md5 sum in case of chunk re-uploads 2020-10-17 17:07:32 +02:00
Dan
ae88c851bb Fix sync callback progress not working properly for downloads
- Reduce duplicated code
- Fixes #484
2020-09-05 12:44:48 +02:00
Dan
f909e1e4ea Fix "invalid escape" warnings 2020-08-26 09:07:26 +02:00
Dan
65b5229fe8 Use inspect's iscoroutinefunction, not asyncio's 2020-08-25 09:32:39 +02:00
Dan
5f087e5f82 Use create_task instead of ensure_future 2020-08-22 14:05:54 +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