开发者

MSNP-SHARP how to send an hello message to an user that changed status from offline to online

开发者 https://www.devze.com 2022-12-29 22:13 出处:网络
I tried in this way. I subscribed to that event who control the user status, its announcing me开发者_高级运维 that user in Online.

I tried in this way. I subscribed to that event who control the user status, its announcing me开发者_高级运维 that user in Online. my code is:

void Nameserver_ContactOnline(object sender, ContactEventArgs e)
{
        Talk = messenger.CreateConversation();
        Talk.Invite(e.Contact.Mail,ClientType.PassportMember);
        Talk.SendTextMessage(new TextMessage(Msg));
        Talk.End();
        LogEvent("Contact online " + e.Contact.Name.ToString() + " " + e.Contact.Mail.ToString());
}

someone can give me a hint ? maybe i do something wrong because message wasn't sent. thanks.


You may just want to use the MessageManager property instead. Make sure you have the latest version of MSNPSharp too.

0

精彩评论

暂无评论...
验证码 换一张
取 消