vvzvlad
79b127d406
feat(client): add watchdog and disconnect flap handling
...
Introduce an active watchdog that probes the Telegram client to detect
zombie sessions and restart them in‑process. Add configurable disconnect
flap detection with a sliding window to trigger restarts after repeated
disconnects. New environment variables and config entries are added, and
the Kurigram dependency is now version‑pinned.
2026-06-04 19:02:09 +03:00
vvzvlad
577093b9fa
test(postparser): use StrWithHtml for Pyrogram text/caption mocks
...
Replace MagicMock based text/caption mocks with a lightweight StrWithHtml
subclass that provides the required `.html` property while behaving like a
regular string. This fixes length and strip checks in the parser and
simplifies test setup. Also adds default proxy settings to mock_config for
test completeness.
2026-05-18 00:15:53 +03:00
vvzvlad
e9949a7eab
update pylint configurations in test
2025-04-26 02:34:08 +04:00
vvzvlad
58253e15e0
add test for get_all_possible_flags
2025-04-26 02:31:16 +04:00
vvzvlad
d2870bc0f6
add youtube title
2025-04-18 22:58:25 +03:00
vvzvlad
d0584d4525
more logging
2025-04-18 21:52:17 +03:00
vvzvlad
bb5931389a
add fwd title prefix
2025-04-18 03:52:43 +03:00
vvzvlad
8282f84b4a
add fwd test
2025-04-18 03:42:36 +03:00
vvzvlad
b10a1f40b5
Ensure forward_origin is always present in message object
2025-04-18 03:40:11 +03:00
vvzvlad
30ab46e21f
Refactor tests
2025-04-17 20:05:04 +03:00
vvzvlad
ecaba7e8bb
new truncate_title logic
2025-04-17 19:43:10 +03:00
vvzvlad
77132eebb9
tests refactoring
2025-04-16 03:05:55 +03:00
vvzvlad
b5bca04f38
add author_info tests
2025-04-16 02:57:21 +03:00
vvzvlad
82233377fd
refactoring tests names
2025-04-16 02:56:48 +03:00
vvzvlad
f9b277424b
Add poll flag
2025-04-15 19:14:49 +03:00
vvzvlad
5e7937f57e
Refactor string trimming logic
2025-04-15 18:09:49 +03:00
vvzvlad
ff9ebeaa70
Refactor PostParser title generation
2025-04-15 18:03:16 +03:00
vvzvlad
1871843b17
small refactoring
2025-04-15 02:43:26 +03:00
vvzvlad
defba4cdaf
Enhance PostParser to handle service messages
2025-04-13 19:14:44 +03:00
vvzvlad
09d3fcf5a1
add only_link flag
2025-04-13 18:59:57 +03:00
vvzvlad
7199a955cd
new forward_origin
2025-04-13 03:47:12 +03:00
vvzvlad
0a4f001acd
tests: replace 'clown' and 'poo' flags with 'clownpoo'
2025-04-12 20:11:56 +03:00
vvzvlad
7d9b0bfd65
t.me/boost links as donat flag
2025-04-11 03:04:38 +03:00
vvzvlad
64368a0d83
Refactor test files to disable pylint warnings and ensure proper formatting
2025-04-11 02:54:13 +03:00
vvzvlad
7a95211fe7
Update post parser to exclude t.me links from flag detection
2025-04-11 02:50:53 +03:00
vvzvlad
78255e51a2
Enhance post parser to flag foreign channels for boost links
2025-04-11 02:48:42 +03:00
vvzvlad
be0ad5b0d2
remove unused import in test_post_parser_flags.py
2025-04-11 02:23:05 +03:00
vvzvlad
8a3664e245
add flags extraction tests
2025-04-11 02:22:41 +03:00
vvzvlad
c730d5bb7f
Refactor title generation to remove punctuation
2025-04-09 03:07:12 +03:00
vvzvlad
c78d8c93f6
Enhance title generation
2025-04-09 02:48:02 +03:00
vvzvlad
2a8326be06
Implement URL-based title generation
2025-04-08 18:38:13 +03:00
vvzvlad
ee56ac41f2
Enhance title generation
2025-04-08 18:25:15 +03:00
vvzvlad
d2a857d169
Refactor title generation
2025-04-08 18:16:46 +03:00
vvzvlad
5d1e109858
add tests
2025-04-08 17:34:39 +03:00
vvzvlad
129b07abda
add logging
2025-04-04 22:09:52 +03:00