public override SendPrivateMessageApiMahuaCommandResult Handle(SendPrivateMessageApiMahuaCommand message) { var source = CoolQApi.CQ_sendPrivateMsg(AuthCode, Convert.ToInt64(message.ToQq), message.Message); var re = new SendPrivateMessageApiMahuaCommandResult { MessageCancelToken = _factory(source), }; return(re); }
public override void Handle(SendPrivateMessageApiMahuaCommand message) { CoolQApi.CQ_sendPrivateMsg(AuthCode, Convert.ToInt64(message.ToQq), message.Message); }