How Does a Bot Verify That It Can Connect To A Channel?

Good ideas. Simple. I like it.
Thanks!