mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-25 10:02:17 +00:00
teletype fix a bug
This commit is contained in:
parent
46f53f584f
commit
4468d85074
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user