API¶
-
class
ts3py.TS3Server(ip, port=10011)[source]¶ -
command(cmd, params={}, options=[])[source]¶ Send a command to the Teamspeak3-server and return the response.
Parameters: - cmd (string) – command
- params (dict) – parameters appended to the command
- options (list) – options appended to the command
Returns: response of the command (if any)
Return type: list
-
-
ts3utils.build_command(cmd, params={}, options=[])[source]¶ Build query command-string from cmd, params and options.
Parameters: - cmd (str) – command
- params (dict) – parameters for the command
- options (list) – options for the command
-
ts3utils.escape(data)[source]¶ Escape to TS3Query-format.
Parameters: data (str) – data in normal form