Whispering gallery modes along a bent channel waveguide