randydev commited on
Commit
9f91460
Β·
1 Parent(s): b93b9aa

fix update

Browse files
akn/AllDownloaderBot/helpers/azrcallback.py CHANGED
@@ -30,14 +30,20 @@ help_texts = {
30
  "/lock - Lock permissions\n"
31
  "/unlock - Unlock permissions\n"
32
  "/locks - Current locks\n"
33
- "/locktypes - Available locks"
 
 
 
 
 
 
34
  }
35
 
36
- @Client.on_callback_query(filters.regex("^rhelp_"))
37
  async def rxhelp_callback(client, callback):
38
  category = callback.data.split("_")[1]
39
  keyboard = InlineKeyboardMarkup([
40
- [InlineKeyboardButton("πŸ”™ Back", callback_data="rhelp_back")]
41
  ])
42
 
43
  await callback.edit_message_text(
@@ -45,7 +51,8 @@ async def rxhelp_callback(client, callback):
45
  reply_markup=keyboard
46
  )
47
 
48
- @Client.on_callback_query(filters.regex("^rhelp_back"))
 
49
  async def rhelp_back(client, callback):
50
  keyboard = InlineKeyboardMarkup([
51
  [
 
30
  "/lock - Lock permissions\n"
31
  "/unlock - Unlock permissions\n"
32
  "/locks - Current locks\n"
33
+ "/locktypes - Available locks",
34
+
35
+ "demote": "**Demotion Commands:**\n"
36
+ "/demote - Demote user\n"
37
+ "/undemote - Undemote user\n"
38
+ "/demoteme - Demote yourself\n"
39
+ "/demoteall - Demote all admins"
40
  }
41
 
42
+ @Client.on_callback_query(filters.regex("^rhelp_(ban|mute|promote|demote|clean|lock)$"))
43
  async def rxhelp_callback(client, callback):
44
  category = callback.data.split("_")[1]
45
  keyboard = InlineKeyboardMarkup([
46
+ [InlineKeyboardButton("πŸ”™ Back", callback_data="rhelps_back")]
47
  ])
48
 
49
  await callback.edit_message_text(
 
51
  reply_markup=keyboard
52
  )
53
 
54
+
55
+ @Client.on_callback_query(filters.regex("^rhelps_back"))
56
  async def rhelp_back(client, callback):
57
  keyboard = InlineKeyboardMarkup([
58
  [