Mods update

* Fixed notifications not working in mod_chat_sanitizer (in violent sanitization)
* Increased default timeouts for _get_all_quantites and _download_video (mod_video_downloader)
This commit is contained in:
2026-01-09 01:12:49 +03:00
parent 73cc8fdcbd
commit 5af7f3f646
2 changed files with 4 additions and 3 deletions

View File

@@ -98,6 +98,7 @@ async def _violent_worker(data: dict) -> None:
await client.send_message(report_peer, message='mod_chat_sanitizer:\n\nLooks like no new messages. Stopping... Offset: %s' % messages_offset)
to_work = False
break
notify_in -= len(res)
for i in range(len(res)):
try:
# check if text is forbidden