Need help about twitch.tv application

Sorry, but I don’t understand a lot…
My telegram bot send a request to my twich App, my App should check if the user is registered to a particular twich channel.
So I am asking, how to write code ?
I don’t have seen any editor for doing it.
How exactly my twicht App should react ?
Should my twitch App generate the tokens or, something else ?