vvzvlad
14f8db0a32
refactor(client): add optional session param to _on_disconnect
2026-03-16 04:05:39 +03:00
vvzvlad
3c2b4ce544
perf(downloads): implement concurrent download queue with semaphore limiting and retry logic
...
Add queue-based background download system to improve performance and reliability:
- Introduce DOWNLOAD_SEMAPHORE to limit concurrent downloads to 3
- Add asyncio.Queue (maxsize 100) with dedicated worker for background processing
- Implement safe_get_messages and safe_download_media wrappers with timeout protection (30s and 120s)
- Add retry logic for KeyError auth failures with 5s backoff
- Replace synchronous sequential downloads with asynchronous queued processing
- Prevent event loop blocking by queuing files instead of immediate download
2026-01-01 14:14:26 +03:00
vvzvlad
43516d6dab
refactor api_server and TelegramClient: remove force_exit function and replace with sys.exit for process termination, update restart logic to use SIGTERM instead of SIGKILL for graceful shutdown
2025-06-10 15:03:09 +03:00
vvzvlad
521c3dc394
implement forceful termination in api_server and TelegramClient: add force_exit function for immediate process shutdown, update SIGTERM handler for forceful exit, and adjust restart logic in connection_handler to use SIGKILL
2025-06-10 14:28:51 +03:00
vvzvlad
d6c3725b02
implement graceful shutdown in api_server: add SIGTERM handler for proper termination and enhance error handling for server startup issues
2025-06-10 14:06:56 +03:00
vvzvlad
2c9ebf139f
refactor connection_handler in TelegramClient: increase wait time to 5 seconds before restart, implement process termination and forking for more reliable restarts
2025-06-10 03:58:33 +03:00
vvzvlad
223ae57929
add delay in connection_handler to ensure resources are freed before process restart
2025-06-10 03:38:33 +03:00
vvzvlad
c94090c4b5
update _on_disconnect method in TelegramClient: change to async for better handling of disconnections
2025-06-10 03:25:54 +03:00
vvzvlad
be28a11db6
implement connection handling in TelegramClient: add disconnect tracking and application restart on multiple disconnections
2025-04-27 18:31:29 +04:00
vvzvlad
cb419c97af
update pylint and pylance disable comments
2025-04-18 18:00:02 +03:00
vvzvlad
422e2adc2d
Add shebang and encoding declaration to multiple Python files
2025-04-03 01:48:34 +03:00
vvzvlad
583a4c4b3c
Add uvloop support for asyncio in api_server and telegram_client; update requirements.txt
2025-03-21 14:29:57 +03:00
vvzvlad
60b253c1c1
Refactor session handling and configuration management
2025-02-10 05:09:29 +03:00
vvzvlad
b0e03ce6e8
Enhance media retrieval with file unique ID and improved error handling
2025-02-03 02:28:58 +03:00
vvzvlad
7d5f151793
Update media URL generation to include chat username and message ID
2025-02-03 02:06:51 +03:00
vvzvlad
1693e5c0b0
Add media file ID tracking and update file ID retrieval method
2025-02-02 23:35:07 +03:00
vvzvlad
f360f1167c
BIG refactoring
2025-02-02 18:51:50 +03:00
vvzvlad
2a6470462d
Add channel title and icon to RSS feed generation
2025-02-02 03:56:42 +03:00
vvzvlad
533fc8ba31
Fix media URL handling by stripping leading slashes
2025-02-02 03:50:12 +03:00
vvzvlad
ca0286a18b
Skip pinned service messages in Telegram client parsing
2025-02-02 03:41:52 +03:00
vvzvlad
6b1e75946d
Add support for Voice, Animation, and WebPage media types in Telegram client
2025-02-02 03:22:06 +03:00
vvzvlad
3ad9a6461b
Enhance media parsing with comprehensive media type support and robust error handling
2025-02-02 02:58:36 +03:00
vvzvlad
1c190b69ac
Refactor author information extraction in Telegram client
2025-02-02 02:22:39 +03:00
vvzvlad
2842cebcca
Modify message parsing to include raw text, views, and media group ID
2025-02-02 02:15:18 +03:00
vvzvlad
9bb0d8a021
Add RSS feed generation endpoint for Telegram channels
2025-02-02 01:59:14 +03:00
vvzvlad
d1ae60a14c
Add configurable Pyrogram bridge URL and log level settings
2025-02-02 01:00:41 +03:00
vvzvlad
3f198ffa33
Enhance media parsing with web page photo and poll support
2025-02-02 00:49:47 +03:00
vvzvlad
63a3c4a988
Add media download endpoint and refactor media handling
2025-02-02 00:34:54 +03:00
vvzvlad
5bcac3f494
Disable complex text entity processing in Telegram client
2025-02-01 23:39:46 +03:00
vvzvlad
75a2cca8bd
Improve media group processing and message retrieval in Telegram client
2025-02-01 21:11:14 +03:00
vvzvlad
96d316fcb5
Enhance Telegram message parsing with additional metadata extraction
2025-02-01 20:47:21 +03:00
vvzvlad
e7f7520f79
Simplify media group processing and message parsing logic
2025-02-01 20:37:20 +03:00
vvzvlad
f72b9af544
Add comprehensive raw message parsing and metadata extraction
2025-02-01 20:29:06 +03:00
vvzvlad
19f2c8b3cc
Refactor Telegram message parsing and title generation
2025-02-01 20:19:18 +03:00
vvzvlad
6f1cca6646
Include author information in combined Telegram message result
2025-02-01 20:17:16 +03:00
vvzvlad
7a678bf08e
Add author information extraction to Telegram message parsing
2025-02-01 20:15:22 +03:00
vvzvlad
b33fb2e060
Improve title generation with better truncation logic
2025-02-01 20:12:03 +03:00
vvzvlad
8fe4a1e906
Add title generation for Telegram posts and improve media preview styling
2025-02-01 20:10:19 +03:00
vvzvlad
bcac493e4b
Enhance message parsing and HTML rendering for Telegram posts
2025-02-01 18:31:14 +03:00
vvzvlad
20221c78e1
add html support
2025-02-01 17:52:23 +03:00
vvzvlad
6e367b3ac9
first work version
2025-02-01 16:47:46 +03:00