Example #1
0
        //发送群消息
        private void button11_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(this.textBox14.Text))
            {
                MessageBox.Show("目标群号不能为空");
                return;
            }

            if (string.IsNullOrWhiteSpace(this.textBox13.Text))
            {
                MessageBox.Show("消息内容不能为空");
                return;
            }
            int content = coolQApiForTest.SendGroupMsg(Convert.ToInt64(this.textBox14.Text), this.textBox13.Text);

            textBox4.Text = "" + content;
            MessageBox.Show("执行完成");
        }