将邮件发送到Skype的“组"从.NET聊天? [英] Send messages to Skype "group" chat from .NET?

查看:132
本文介绍了将邮件发送到Skype的“组"从.NET聊天?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简单的方法可以从.NET向Skype发送群聊消息?我不需要响应任何命令或任何东西,因此它不必是BOT.基本上,我将在专用的盒子上运行该程序,并以特殊用户的身份运行Skype,并让它向特定的群聊报告某些信息.

Is there an easy way to send group chat messages to Skype from .NET? I don't need to respond to any commands or anything, so it doesn't need to be a BOT. Basically, I would run this program on a dedicated box with Skype running as a special user and I would have it report certain information to a specific group chat.

我知道有一个Skype COM库.我已经看到了一些基于此的示例,但并没有获得任何关注.

I understand there is a Skype COM library. I have seen examples based on that but I haven't been able to get any traction.

推荐答案

当前可用的Skype API Windows使用 WM_COPYDATA 交换用于控制Skype的基于文本的命令(请参见公共API参考下载).开发中有一个叫做 SkypeKit 的新事物,但是它是一个内测版,所以我不知道它将有助于增强体验.

The currently available Skype API for Windows uses WM_COPYDATA to exchange text-based commands for controlling Skype (see the Public API Reference download). There is a new thing called SkypeKit in development but it's a closed beta so I don't know what it will do to enhance the experience.

似乎有一些项目在这里和那里用C#使用一些基于.NET的调用包装了现有的公共API.它们要么包装基本级别的消息传递系统,要么包装COM包装器Skype4COM(如您所见).Google搜索给我的这些结果似乎可以帮助您入门:

There appear to have been a few projects here and there that have wrapped the existing public API with some .NET-based calls using C#. These either wrap the basic level messaging system or the COM wrapper, Skype4COM (as you have already seen). A Google search gave me these results that seem to get you started:

根据您的经验,我将查看此列表中的第一项,因为它似乎是与Windows消息(即 WM_COPYDATA )(而不是Skype4COM)直接交互.

Based on your experiences, I would look at the first item in this list as it appears to be a directly interacting with the Windows messages (i.e. WM_COPYDATA) rather than Skype4COM.

向群组发送聊天消息
假设您使用了上面引用的C#包装器,那么这里是从公共API发送聊天消息到群组所需要的命令的粗略概念.

Sending a chat message to a group
Assuming you utilise the C# wrappers referenced above, here is a rough idea of the commands you'll need from the public API in order to send a chat message to a group.

开始聊天的命令是 CHAT CREATE .从文档中可以看出,您必须分别指定每个收件人(或目标,如API参考中所写).不清楚是否可以使用组名,但是,使用 GET GROUP USERS 命令可以获取特定组内的各个用户.

The command to start a chat is CHAT CREATE. It appears from the documentation that you have to specify each recipient (or target, as the written in the API reference) individually. Whether this can be a group name or not is not made clear, however, the GET GROUP USERS command enables you to obtain the individual users within a specific group.

聊天后,您可以使用 CHATMESSAGE 命令实际发布一条消息.

Once you have a chat, you can use the CHATMESSAGE command to actually post a message.

这篇关于将邮件发送到Skype的“组"从.NET聊天?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆