Compare commits

...

1 Commits

Author SHA1 Message Date
udf 74f0cea230
Fix ninja in saved messages
I'm not sure why you'd use ninja in your own chat, but it shouldn't raise anyways.
2018-11-21 23:24:33 +02:00
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@
import asyncio
from telethon import events
from telethon.tl.types import InputPeerSelf
import telethon.utils
from uniborg import util
@ -20,6 +21,8 @@ async def get_target_message(event):
async def await_read(chat, message):
if isinstance(chat, InputPeerSelf):
return
chat = telethon.utils.get_peer_id(chat)
async def read_filter(read_event):