mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-25 12:37:49 +00:00
teletype fix a bug
This commit is contained in:
parent
46f53f584f
commit
4468d85074
@ -1,5 +1,7 @@
|
|||||||
from asyncio import sleep
|
from asyncio import sleep
|
||||||
|
|
||||||
|
from pyrogram.errors.exceptions.bad_request_400 import MessageNotModified
|
||||||
|
|
||||||
from pagermaid.listener import listener
|
from pagermaid.listener import listener
|
||||||
from pagermaid.utils import lang, Message
|
from pagermaid.utils import lang, Message
|
||||||
|
|
||||||
@ -27,7 +29,7 @@ async def teletype(message: Message):
|
|||||||
await sleep(interval)
|
await sleep(interval)
|
||||||
try:
|
try:
|
||||||
await msg.edit(buffer)
|
await msg.edit(buffer)
|
||||||
except MessageNotModifiedError:
|
except MessageNotModified:
|
||||||
pass
|
pass
|
||||||
except Exception:
|
except Exception:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user