teletype fix a bug

This commit is contained in:
xtaodada 2022-09-15 14:22:27 +08:00
parent 46f53f584f
commit 4468d85074
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -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