Yes! Your textbook is right! Japanese people who work as teachers say" watashi wa kyoshi desu" in formal. You shoud also write 英語教師(Eigo kyoshi) as your occupation in something form.
せんせい is a word referring to person (e.g. a teacher, a doctor, a politician and so on.)
However, you can say both in casual. Anyone don't mind that.