forcegroup 修复错误删除关联频道消息的问题

This commit is contained in:
xtaodada 2021-07-16 13:48:46 +08:00
parent 48c416ff3e
commit adb3842a29
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 6 additions and 1 deletions

View File

@ -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))

View File

@ -622,7 +622,7 @@
}, },
{ {
"name": "forcegroup", "name": "forcegroup",
"version": "1.0", "version": "1.01",
"section": "daily", "section": "daily",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "3.6 kb", "size": "3.6 kb",