mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Pyrofork: Add ChannelPrivate exception handler to Message parser
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
282f512fed
commit
0fcce527bc
1 changed files with 3 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ import pyrogram
|
|||
from pyrogram import raw, enums
|
||||
from pyrogram import types
|
||||
from pyrogram import utils
|
||||
from pyrogram.errors import MessageIdsEmpty, PeerIdInvalid
|
||||
from pyrogram.errors import ChannelPrivate, MessageIdsEmpty, PeerIdInvalid
|
||||
from pyrogram.parser import utils as parser_utils, Parser
|
||||
from ..object import Object
|
||||
from ..update import Update
|
||||
|
|
@ -1173,6 +1173,8 @@ class Message(Object, Update):
|
|||
parsed_message.reply_to_message = reply_to_message
|
||||
except MessageIdsEmpty:
|
||||
pass
|
||||
except ChannelPrivate:
|
||||
pass
|
||||
elif parsed_message.reply_to_story_id:
|
||||
try:
|
||||
reply_to_story = await client.get_stories(
|
||||
|
|
|
|||
Loading…
Reference in a new issue