· 6 years ago · Oct 23, 2019, 03:08 AM
1import ts3
2
3ts3_connection = ts3.query.TS3ClientConnection("telnet://localhost:25639")
4ts3_connection.exec_("auth", apikey="SUA API KEY")
5ts3_connection.exec_("sendtextmessage", targetmode=2, msg="o mensagem")