[Python] Change the stream title

This is resolved.

My mistake was that I generated a token with access on behalf of the bot, and not on behalf of my channel.

The working version of the code looks like this:

url = "https://api.twitch.tv/kraken/channels/" + TWITCH_CHANNEL_ID
headers = \
{
	'Accept': 'application/vnd.twitchtv.v5+json',
	"Client-ID": BOT_CLIENT_ID,
	"Authorization": "OAuth " + AUTH_TOKEN,
	"Content-Type": "application/json"
}
data = '{"channel": {"status":"New Title"}}'
response = requests.put(url=url, headers=headers, data=data.encode('utf-8')).json()

I’m repeat that for the query to work correctly, it is necessary to generate AUTH_TOKEN on behalf of the streamer, the data of which needs to be changed, allowing access to “channel_editor”, and not on behalf of the bot account.

And once again I apologize for my English =)
Closed.