def notifon(message): try: from sedenecem.sql.keep_read_sql import unkread except BaseException: edit(message, f'`{get_translation("nonSqlMode")}`') return unkread(str(-1)) edit(message, f'`{get_translation("pmNotifOn")}`')
def unmutechat(message): try: from sedenecem.sql.keep_read_sql import unkread except BaseException: edit(message, f'`{get_translation("nonSqlMode")}`') return status = unkread(str(message.chat.id)) if status: edit(message, f'`{get_translation("chatUnmuted")}`') else: edit(message, f'`{get_translation("chatAlreadyUnmuted")}`') sleep(2) message.delete()