mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 06:27:42 +00:00
forcesubscribe 修复关联频道消息报错
This commit is contained in:
parent
9c01f3f2ca
commit
418fb0f5dc
@ -52,8 +52,11 @@ async def force_subscribe_msg(context: Message):
|
|||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
join_chat = join_chat.decode()
|
join_chat = join_chat.decode()
|
||||||
|
try:
|
||||||
if context.sender.bot:
|
if context.sender.bot:
|
||||||
return
|
return
|
||||||
|
except AttributeError:
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
await bot(GetParticipantRequest(join_chat, context.sender_id))
|
await bot(GetParticipantRequest(join_chat, context.sender_id))
|
||||||
|
Loading…
Reference in New Issue
Block a user