Basil Brush is going to be Dobby the house elf.
Bottom star Adrian Edmondson, who's married to Jennifer Saunders, is directing the sketch.
"What great casting," he said. "Meeting Basil was a high point of my career. He is a genuine person."
Potter author JK Rowling was at the launch of Comic Relief and posed with a red nose with comedian Lenny Henry.