The main thing is not to forget about what's causing the mold, or it'll come back. If the wall was just covered with wallpaper without proper air circulation, scraping it off plus treating it with an antifungal should do the trick. But if there's actual moisture (condensation, leaks, poor ventilation in the bedroom), you need to deal with that first - improve ventilation, check the seals, maybe even put in a dehumidifier.
As for products: after scraping, wipe the wall down with an antiseptic or fungicide (there are special formulas like Mileu, Biodep). You can use copper sulfate diluted - it's a tried-and-true option. The key thing is to soak not just the visible black spots, but the whole surrounding area too, because spores are everywhere. Let the wall dry completely - this can take a day or two.
Then use a primer with antifungal properties before putting up the wallpaper. This creates an extra barrier. And make sure to check that the air in the bedroom dries out properly - ventilate regularly, don't let moisture build up. Otherwise it'll all happen again.