Skip to content

Commit 81bdb86

Browse files
authored
small fix
1 parent d5bdbe4 commit 81bdb86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

assistant/plugins/verify_new_members.py

+2
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ async def _verify_user_(_, c_q: CallbackQuery):
129129

130130
@bot.on_callback_query(filters.regex(pattern=r"joined_unmute\((.+?)\)"))
131131
async def _on_joined_unmute_(_, c_q: CallbackQuery):
132+
if not c_q.message.chat:
133+
return
132134
_a, _b = c_q.matches[0].group(1).split(' ', maxsplit=1)
133135
user_id = int(_a)
134136
msg_id = int(_b)

0 commit comments

Comments
 (0)