Skip to content

Commit c9b29f6

Browse files
committed
hope it's fixed
1 parent dcfb07b commit c9b29f6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,10 @@ async def admin_approve(client: "Client", callback_query: types.CallbackQuery):
116116
await callback_query.answer("Approved")
117117
await callback_query.message.delete()
118118
await un_restrict_user(chat_id, join_user_id)
119+
await invalid_queue(f"{chat_id},{join_user_id}")
119120
else:
120121
await callback_query.answer("You are not administrator")
121122

122-
await invalid_queue(f"{chat_id},{join_user_id}")
123-
124123

125124
@app.on_callback_query(filters.regex(r"Deny.*"))
126125
async def admin_deny(client: "Client", callback_query: types.CallbackQuery):
@@ -135,11 +134,10 @@ async def admin_deny(client: "Client", callback_query: types.CallbackQuery):
135134
await callback_query.answer("Denied")
136135
await callback_query.message.delete()
137136
await ban_user(chat_id, join_user_id)
137+
await invalid_queue(f"{chat_id},{join_user_id}")
138138
else:
139139
await callback_query.answer("You are not administrator")
140140

141-
await invalid_queue(f"{chat_id},{join_user_id}")
142-
143141

144142
# TODO broad event listener
145143
@app.on_callback_query()

0 commit comments

Comments
 (0)