mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 12:55:38 +00:00
forcegroup 修复错误删除关联频道消息的问题
This commit is contained in:
parent
48c416ff3e
commit
adb3842a29
@ -17,6 +17,11 @@ async def force_group_msg(context: Message):
|
|||||||
return
|
return
|
||||||
if redis.get(f"group.chat_id.{context.chat_id}.{context.sender_id}"):
|
if redis.get(f"group.chat_id.{context.chat_id}.{context.sender_id}"):
|
||||||
return
|
return
|
||||||
|
try:
|
||||||
|
if context.sender.bot:
|
||||||
|
pass
|
||||||
|
except AttributeError:
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
await bot(GetParticipantRequest(context.chat, context.sender_id))
|
await bot(GetParticipantRequest(context.chat, context.sender_id))
|
||||||
|
Loading…
Reference in New Issue
Block a user