30-sep: [watchers] Fix telegram_watcher telethon 1.44 (MessageRead) + encoding UTF-8
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user