File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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.*" ))
126125async 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 ()
You can’t perform that action at this time.
0 commit comments