mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-24 10:33:35 +00:00
🔖 Update to v1.2.21
This commit is contained in:
parent
4566c21c0a
commit
0a4dda08ab
@ -15,7 +15,7 @@ from pyrogram import Client
|
|||||||
|
|
||||||
from pyromod.listen.temp_fix import temp_fix
|
from pyromod.listen.temp_fix import temp_fix
|
||||||
|
|
||||||
pgm_version = "1.2.20"
|
pgm_version = "1.2.21"
|
||||||
CMD_LIST = {}
|
CMD_LIST = {}
|
||||||
module_dir = __path__[0]
|
module_dir = __path__[0]
|
||||||
working_dir = getcwd()
|
working_dir = getcwd()
|
||||||
|
@ -11,7 +11,7 @@ from pyrogram.errors.exceptions.bad_request_400 import (
|
|||||||
MessageIdInvalid,
|
MessageIdInvalid,
|
||||||
MessageNotModified,
|
MessageNotModified,
|
||||||
MessageEmpty,
|
MessageEmpty,
|
||||||
UserNotParticipant
|
UserNotParticipant, PeerIdInvalid
|
||||||
)
|
)
|
||||||
from pyrogram.handlers import MessageHandler, EditedMessageHandler
|
from pyrogram.handlers import MessageHandler, EditedMessageHandler
|
||||||
|
|
||||||
@ -20,7 +20,6 @@ from pagermaid.group_manager import Permission
|
|||||||
from pagermaid.inject import inject
|
from pagermaid.inject import inject
|
||||||
from pagermaid.single_utils import Message, AlreadyInConversationError, TimeoutConversationError, ListenerCanceled
|
from pagermaid.single_utils import Message, AlreadyInConversationError, TimeoutConversationError, ListenerCanceled
|
||||||
from pagermaid.utils import lang, attach_report, sudo_filter, alias_command, get_permission_name, process_exit
|
from pagermaid.utils import lang, attach_report, sudo_filter, alias_command, get_permission_name, process_exit
|
||||||
from pagermaid.utils import client as httpx_client
|
|
||||||
from pagermaid.hook import Hook
|
from pagermaid.hook import Hook
|
||||||
|
|
||||||
secret_generator = secrets.SystemRandom()
|
secret_generator = secrets.SystemRandom()
|
||||||
@ -153,8 +152,10 @@ def listener(**args):
|
|||||||
raise StopPropagation from e
|
raise StopPropagation from e
|
||||||
except KeyboardInterrupt as e:
|
except KeyboardInterrupt as e:
|
||||||
raise KeyboardInterrupt from e
|
raise KeyboardInterrupt from e
|
||||||
except (UserNotParticipant, MessageNotModified, MessageEmpty, Flood, Forbidden):
|
except (UserNotParticipant, MessageNotModified, MessageEmpty, Flood, Forbidden, PeerIdInvalid):
|
||||||
pass
|
logs.warning(
|
||||||
|
"An unknown chat error occurred while processing a command.",
|
||||||
|
)
|
||||||
except MessageIdInvalid:
|
except MessageIdInvalid:
|
||||||
logs.warning(
|
logs.warning(
|
||||||
"Please Don't Delete Commands While it's Processing.."
|
"Please Don't Delete Commands While it's Processing.."
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
pyrogram==2.0.73
|
pyrogram==2.0.93
|
||||||
TgCrypto==1.2.5
|
TgCrypto==1.2.5
|
||||||
Pillow>=8.4.0
|
Pillow>=8.4.0
|
||||||
pytz>=2021.3
|
pytz>=2021.3
|
||||||
|
Loading…
Reference in New Issue
Block a user