[telegram] Covering more edge cases

I also switched from iterators to using string.at(). I will look this
over again and try to switch back to iterators when I have more time.