Commit Graph

  • 0dd4460e35 refactor tg_cache: simplify cache file path generation by removing limit from filename and updating related cache functions vvzvlad 2025-06-10 03:51:51 +03:00
  • 14081a3d44 refactor rss_generator and tg_cache: replace cached_get_chat with direct client.get_chat calls, update message caching logic to handle limits, and improve cache file naming for message history vvzvlad 2025-06-10 03:48:08 +03:00
  • 223ae57929 add delay in connection_handler to ensure resources are freed before process restart vvzvlad 2025-06-10 03:38:33 +03:00
  • 0f992bf3a8 enhance cache expiration logic in _get_from_cache: add randomness to max age check for improved cache validity vvzvlad 2025-06-10 03:28:43 +03:00
  • c94090c4b5 update _on_disconnect method in TelegramClient: change to async for better handling of disconnections vvzvlad 2025-06-10 03:25:54 +03:00
  • 95361be6f4 refactor tg_cache: change debug logs to info level for cache operations to enhance log clarity vvzvlad 2025-06-10 03:24:22 +03:00
  • b7a8f4f60d refactor requirements and rss_generator: replace direct get_chat calls with cached_get_chat for improved performance and update requirements.txt to uncomment Kurigram vvzvlad 2025-06-10 02:40:23 +03:00
  • a2d67340a9 skip story messages cache_bug vvzvlad 2025-05-11 15:30:45 +03:00
  • b5c52ddd70 refactor PostParser: improve story media handling by using original story sender channel for file paths and adding error logging for channel extraction vvzvlad 2025-05-10 21:57:51 +03:00
  • e0e35cd879 enhance PostParser: add support for story media handling, including video and photo differentiation vvzvlad 2025-05-10 21:48:01 +03:00
  • c27c3814b9 implement story media file saving logic in PostParser vvzvlad 2025-05-10 21:37:40 +03:00
  • 79105b713f add support for handling stories vvzvlad 2025-05-10 21:20:41 +03:00
  • f4774f9253 add semaphore for limiting concurrent Telegram API requests in get_chat_history vvzvlad 2025-04-30 14:47:28 +04:00
  • 740104bb7b refactor TelegramClient: remove disconnection handler and related exit logic vvzvlad 2025-04-30 14:39:09 +04:00
  • 1ec87cba14 refactor TelegramClient: simplify disconnection handling vvzvlad 2025-04-29 19:48:11 +04:00
  • f009c413e6 enhance TelegramClient: implement auto-reconnect logic with disconnect tracking and delay, improving resilience against connection issues vvzvlad 2025-04-29 15:22:36 +04:00
  • 7e6aa1f7ba refactor TelegramClient: remove signal handling and restart logic, replace app restart with process exit on disconnect limit vvzvlad 2025-04-29 15:10:13 +04:00
  • 5ac093c0bc implement RSS cache update mechanism vvzvlad 2025-04-29 14:34:32 +04:00
  • 1eaa99c3d4 add signal handling to TelegramClient for graceful shutdown on termination signals vvzvlad 2025-04-28 23:51:16 +04:00
  • a96c018a19 update cache directory paths vvzvlad 2025-04-28 13:33:07 +04:00
  • 4ddb6a7545 remove timing logs from get_rss_feed in api_server vvzvlad 2025-04-28 13:29:46 +04:00
  • 169578051e change debug logs to info level for timing metrics in rss_generator and html generation functions vvzvlad 2025-04-28 13:08:15 +04:00
  • d766220025 implement caching for RSS vvzvlad 2025-04-27 20:32:31 +04:00
  • ef945ff767 refactor TelegramClient: change _on_disconnect and _restart_app methods to async for better handling of asynchronous operations vvzvlad 2025-04-27 18:45:35 +04:00
  • 0999e86f2b add timing logs for RSS and HTML generation in api_server and rss_generator vvzvlad 2025-04-27 18:40:31 +04:00
  • be28a11db6 implement connection handling in TelegramClient: add disconnect tracking and application restart on multiple disconnections vvzvlad 2025-04-27 18:31:29 +04:00
  • f499dc56a7 refactor api_server: comment out redundant log for cached media files vvzvlad 2025-04-27 18:22:31 +04:00
  • 45e9ac7a1e refactor post_parser: add line breaks for improved readability in post content vvzvlad 2025-04-27 13:06:39 +04:00
  • e0bb640a73 refactor post_parser: enhance post text and poll formatting, improve HTML structure vvzvlad 2025-04-26 13:15:03 +04:00
  • 508be049d9 refactor post_parser: streamline content body construction for improved readability vvzvlad 2025-04-26 12:55:38 +04:00
  • 36236d4407 refactor post_parser: clean up whitespace and improve PDF placeholder handling vvzvlad 2025-04-26 12:52:18 +04:00
  • 1bd36b32d8 refactor post_parser: wrap media content in a div for better HTML structure vvzvlad 2025-04-26 12:51:37 +04:00
  • c340d22fc4 improve error logging vvzvlad 2025-04-26 12:46:22 +04:00
  • 721302d2e6 oops vvzvlad 2025-04-26 12:42:27 +04:00
  • b9d5e839df refactor post_parser and rss_generator:move media in body render vvzvlad 2025-04-26 12:38:52 +04:00
  • e9949a7eab update pylint configurations in test vvzvlad 2025-04-26 02:34:08 +04:00
  • 58253e15e0 add test for get_all_possible_flags vvzvlad 2025-04-26 02:31:16 +04:00
  • 422a3925ff fix bug vvzvlad 2025-04-25 16:59:21 +04:00
  • db0d1a6dc2 refactor _generate_html_body to streamline reply info handling and improve logging vvzvlad 2025-04-20 19:07:30 +03:00
  • 5c34d62c11 EPIC: support REPLY_TO in rss vvzvlad 2025-04-19 04:49:01 +03:00
  • 80d6cc5d5a add line break in debug HTML vvzvlad 2025-04-19 04:33:47 +03:00
  • 65a69ed37a refactoring vvzvlad 2025-04-19 04:31:50 +03:00
  • 4e1987983f refactoring vvzvlad 2025-04-19 04:11:02 +03:00
  • 2f7f524e83 remove unnecessary line breaks in forwarded message HTML output vvzvlad 2025-04-19 04:03:14 +03:00
  • c2bbf72b07 refactor _format_forward_info to handle multiple forward cases and improve logging vvzvlad 2025-04-19 04:01:52 +03:00
  • 5d4951aecd update comment in post_parser.py to clarify main cut logic vvzvlad 2025-04-19 03:55:03 +03:00
  • 3ab2027c4c add calls map vvzvlad 2025-04-19 03:52:46 +03:00
  • 1e283c4249 fix bug vvzvlad 2025-04-19 03:50:33 +03:00
  • 97ad18e9d4 remove unused vvzvlad 2025-04-19 00:01:21 +03:00
  • ce39431998 move import vvzvlad 2025-04-18 23:34:26 +03:00
  • 386e7e8ce4 improve logging vvzvlad 2025-04-18 23:33:47 +03:00
  • 26744e3699 refactoring vvzvlad 2025-04-18 23:02:29 +03:00
  • d2870bc0f6 add youtube title vvzvlad 2025-04-18 22:58:25 +03:00
  • d0584d4525 more logging vvzvlad 2025-04-18 21:52:17 +03:00
  • ba20f2ee02 add logs vvzvlad 2025-04-18 21:43:56 +03:00
  • 87822c0d51 add message id debug vvzvlad 2025-04-18 21:34:41 +03:00
  • 045360d497 debug print vvzvlad 2025-04-18 21:28:15 +03:00
  • 5aa5783672 format fix vvzvlad 2025-04-18 21:25:45 +03:00
  • fe1fee242d fix local req logic vvzvlad 2025-04-18 21:15:35 +03:00
  • 8c0a88cb84 small fix vvzvlad 2025-04-18 21:10:59 +03:00
  • 27f39a3948 add processed_message_to_tg_message for merge flags vvzvlad 2025-04-18 21:08:20 +03:00
  • 3f253b7a0e add template vvzvlad 2025-04-18 21:05:16 +03:00
  • 8321844a3e refactoring vvzvlad 2025-04-18 20:57:48 +03:00
  • 1760ec3485 add types-2 vvzvlad 2025-04-18 20:39:57 +03:00
  • 1b2cc65899 fix bug vvzvlad 2025-04-18 20:31:37 +03:00
  • 6aba094a6c add types support vvzvlad 2025-04-18 19:42:54 +03:00
  • ec2f439e56 format vvzvlad 2025-04-18 18:02:31 +03:00
  • cb419c97af update pylint and pylance disable comments vvzvlad 2025-04-18 18:00:02 +03:00
  • 6dcec780ac improve error logging vvzvlad 2025-04-18 17:27:55 +03:00
  • 34701a4c50 refactor PostParser vvzvlad 2025-04-18 17:05:51 +03:00
  • fb95636da5 add detailed error logging for reactions views parsing in PostParser vvzvlad 2025-04-18 16:58:15 +03:00
  • 46aadb93d9 revert commit vvzvlad 2025-04-18 05:41:31 +03:00
  • 7621235baa todo vvzvlad 2025-04-18 05:38:48 +03:00
  • 70c8e7aaf0 enhance forward info vvzvlad 2025-04-18 05:33:13 +03:00
  • 64a505cc71 change log level vvzvlad 2025-04-18 05:26:31 +03:00
  • c31eddf211 refactor forward info handling in PostParser to streamline title generation and improve debug logging vvzvlad 2025-04-18 05:23:53 +03:00
  • 5549890e6a fix bug vvzvlad 2025-04-18 05:10:59 +03:00
  • 65d5952241 add audio flag to PostParser for messages with AUDIO or VOICE media vvzvlad 2025-04-18 05:08:28 +03:00
  • c9d5f6b2f6 refactor PostParser and RSS generator to remove header generation and adjust body rendering vvzvlad 2025-04-18 05:06:26 +03:00
  • bbeab1fb33 fix channel_username retrieval to use sender_chat instead of chat in PostParser vvzvlad 2025-04-18 05:02:25 +03:00
  • 9e394b28e2 add merged flag to processed messages in RSS generator vvzvlad 2025-04-18 05:02:09 +03:00
  • 1c77552ca9 enhance forward title display in message content with clearer formatting vvzvlad 2025-04-18 04:54:06 +03:00
  • 63a8e32e25 simplify forward title handling in message content vvzvlad 2025-04-18 04:50:12 +03:00
  • f165a81440 refactor forward title assignment to handle missing sender_chat vvzvlad 2025-04-18 04:46:43 +03:00
  • 0534b65eb3 update forward title handling vvzvlad 2025-04-18 04:43:56 +03:00
  • 1840a47772 adding forward title in post content vvzvlad 2025-04-18 04:41:12 +03:00
  • 468986329d refactoring vvzvlad 2025-04-18 03:55:49 +03:00
  • bb5931389a add fwd title prefix vvzvlad 2025-04-18 03:52:43 +03:00
  • 8282f84b4a add fwd test vvzvlad 2025-04-18 03:42:36 +03:00
  • a73ddb266e refactoring vvzvlad 2025-04-18 03:42:24 +03:00
  • b10a1f40b5 Ensure forward_origin is always present in message object vvzvlad 2025-04-18 03:40:11 +03:00
  • fd8fc07ffb refactoring vvzvlad 2025-04-18 03:13:55 +03:00
  • 24231bc601 Rename truncate_title to _truncate_title vvzvlad 2025-04-18 03:06:54 +03:00
  • 90c7ff5064 Improve error logging vvzvlad 2025-04-17 22:22:25 +03:00
  • 30ab46e21f Refactor tests vvzvlad 2025-04-17 20:05:04 +03:00
  • ecaba7e8bb new truncate_title logic vvzvlad 2025-04-17 19:43:10 +03:00
  • bf1477ab95 move to truncate_title vvzvlad 2025-04-17 19:39:29 +03:00
  • 5dc5783b86 Revert "Enhance RSS description generation" vvzvlad 2025-04-16 06:18:45 +03:00
  • ef5206a0c8 Enhance RSS description generation vvzvlad 2025-04-16 03:18:47 +03:00
  • 77132eebb9 tests refactoring vvzvlad 2025-04-16 03:05:55 +03:00