def bans(client, message): banned_users = get_banned_users() res = "" if not banned_users: res = _("ban_7") else: res = _("ban_8") + "\n" for banned_user in banned_users: res += " - `" + str(banned_user) + "`\n" m = message.reply_text(res) if m and message.chat.type != "private": sleep(10) m.delete() try: message.delete() except: pass
API_HASH = "7a8704afa675c39ec926782e798366a9" # Get this from @Botfather TOKEN = "1514565679:AAHDWubNCdFiDZ-XTXaIy0NXpBozH95kMTM" # The IDs of the users which can stream, skip, pause and change volume SUDO_USERS = [ 1191438732, 914472877 ] # A group ID to send messages to when a song starts playing # Example group ID: -1001402753006 LOG_GROUP = None # Just keep it like this if you are not going to use one # Choose the preferred language for your bot. If English leave as it is, or change to the code of any supported language. LANG = "en" # Max video duration allowed for downloads in minutes DUR_LIMIT = 5 # Remove downloaded files after playing REMOVE_AFTER_PLAYING = False # Show a small credit for @su_Bots in the start message CREDIT = False # No need to touch the following. SUDO_FILTER = filters.user(SUDO_USERS) BANNED = filters.user(get_banned_users())