A boiler can be installed in a bedroom as long as the room is properly sealed.
This means that it draws air for combustion from the outside and exhausts waste air to the outside as well.
A room sealed boiler will not release fumes into the room, making it safe to install in a sleeping room.