/// <summary>
        /// APi操作类
        /// </summary>
        /// <param name="SendType">发送类型</param>
        /// <param name="ID">QQ号码或群内部ID</param>
        /// <param name="Message">消息内容</param>
        static public void SendApi(string SendType, string ID, string Message)
        {
            string Api = "http://" + RobotIP + ":" + RobotPort + "/Api?Key=" + Copyright + "&SendType=" + SendType + "&ID=" + ID + "&Message=" + Message;

            RobotApi.get(Api, "utf-8");
        }
Exemple #2
0
        /// <summary>
        /// APi操作类
        /// </summary>
        /// <param name="SendType">发送类型</param>
        /// <param name="ID">QQ号码或群内部ID</param>
        /// <param name="Message">消息内容</param>
        static public void SendApi(string SendType, string ID, string Message)
        {
            string Api = "http://" + RobotIP + ":" + RobotPort + "/Api?Key=" + Copyright + "&SendType=" + SendType + "&utf=1&ID=" + ID + "&Message=" + HttpUtility.UrlEncode(Message);

            RobotApi.get(Api, "utf-8");
        }