From 4468d8507426640fe17b41d448d792a209a8a9c4 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 15 Sep 2022 14:22:27 +0800 Subject: [PATCH] teletype fix a bug --- teletype/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/teletype/main.py b/teletype/main.py index da1bc8f..b390ec7 100644 --- a/teletype/main.py +++ b/teletype/main.py @@ -1,5 +1,7 @@ from asyncio import sleep +from pyrogram.errors.exceptions.bad_request_400 import MessageNotModified + from pagermaid.listener import listener from pagermaid.utils import lang, Message @@ -27,7 +29,7 @@ async def teletype(message: Message): await sleep(interval) try: await msg.edit(buffer) - except MessageNotModifiedError: + except MessageNotModified: pass except Exception: return