Sending a message in a group conversation through vC #

How to send a message to a skype group chat session via vC #.

Although I have included the skype link in my application and can get some chats.

Thank.

+3
source share
1 answer

You need a link to the iChat interface .

You can get such a link using the ISkype.Chat property .

Once you have the iChat link, it is just a matter of calling the SendMessage () method.

If you like, you can look in the Skype plugin, I wrote here . (Of course, you don’t need to understand the whole application. Just look at the application class defined in Application.cs)

[]

using System;
using System.Windows.Forms;
using SKYPE4COMLib;

namespace SkypeClient
{
    public partial class Form1 : Form
    {
            public Form1()
            {
                InitializeComponent();
            }

            private void button1_Click(object sender, EventArgs e)
            {
                 ISkype skype = new SkypeClass();
                 skype.Attach(5, true);

                 int count = skype.Chats.Count;
                 textBox1.Text = "Count: " + count + "\r\n";
                 foreach (IChat chat in skype.Chats)
                 {
                    textBox1.Text +=  "\r\n"  + chat.FriendlyName;
                 }
            }
       }
 }

, .

+3

Source: https://habr.com/ru/post/1777677/


All Articles