randydev commited on
Commit
23c9755
·
verified ·
1 Parent(s): d889c50
akn/AllDownloaderBot/helpers/azrcallback.py CHANGED
@@ -51,27 +51,6 @@ def get_help_texts(lang="en"):
51
  "botsettings": transdev.get("messages.help_botsettings", lang=lang),
52
  }
53
 
54
-
55
- @Client.on_message(filters.regex("^arzunban_(\d+)"))
56
- async def arzunban_callback(client, callback):
57
- user_id = int(callback.data.split("_")[1])
58
- chat_id = callback.chat.id
59
- try:
60
- await client.unban_chat_member(chat_id, user_id)
61
- await callback.answer("User unbanned successfully!")
62
- except Exception as e:
63
- await callback.answer(f"Failed to unban user: {e}")
64
-
65
- @Client.on_message(filters.regex("^arzunmute_(\d+)"))
66
- async def arzunmute_callback(client, callback):
67
- user_id = int(callback.data.split("_")[1])
68
- chat_id = callback.chat.id
69
- try:
70
- await client.restrict_chat_member(chat_id, user_id, permissions=unmute_permissions)
71
- await callback.answer("User unmuted successfully!")
72
- except Exception as e:
73
- await callback.answer(f"Failed to unmute user: {e}")
74
-
75
  @Client.on_callback_query(
76
  filters.regex("^rhelp_(ban|mute|promote|demote|clean|lock|downloader|stats|forcesub|blacklist|botsettings)$")
77
  )
 
51
  "botsettings": transdev.get("messages.help_botsettings", lang=lang),
52
  }
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  @Client.on_callback_query(
55
  filters.regex("^rhelp_(ban|mute|promote|demote|clean|lock|downloader|stats|forcesub|blacklist|botsettings)$")
56
  )