30-sep: [watchers] Fix telegram_watcher telethon 1.44 (MessageRead) + encoding UTF-8

This commit is contained in:
minguezsanzjuanjose
2026-09-30 22:07:35 +02:00
parent b9800b6f25
commit dd810c4e13
28 changed files with 2695 additions and 25 deletions

View File

@@ -10,6 +10,12 @@ import asyncio, sys, os, json, time, re
from datetime import datetime, timezone
from pathlib import Path
for _stream in (sys.stdout, sys.stderr):
try:
_stream.reconfigure(encoding='utf-8', errors='replace')
except Exception:
pass
C = {
'red': '\033[91m', 'green': '\033[92m', 'yellow': '\033[93m',
'blue': '\033[94m', 'magenta': '\033[95m', 'cyan': '\033[96m',
@@ -295,7 +301,7 @@ async def main():
# Registro de eventos de confirmacion de lectura (Doble Check) -> SOLO IDD
last_read_triggers = {}
@client.on(events.MessageRead(outbox=True))
@client.on(events.MessageRead())
async def on_message_read(event):
try:
if is_silenciado():