From 762f1dd0d146c80ec7b0a3c9a4d7008f8da670a6 Mon Sep 17 00:00:00 2001 From: Krzysztof Jagiello Date: Mon, 6 Jun 2011 17:42:20 +0200 Subject: [PATCH] fixed bug in example --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 55a04b1..58be557 100644 --- a/README.rst +++ b/README.rst @@ -34,7 +34,7 @@ Example showing how to create a channel and sub-channel for it using python-ts3 response = server.send_command('channelcreate', keys={'channel_name': 'Just some channel'}) # id of the newly created channel - channel_id = response.data['cid'] + channel_id = response.data[0]['cid'] # create a sub-channel server.send_command('channelcreate', keys={'channel_name': 'Just some sub-channel', 'cpid': channel_id})